Skip to content

Commit

Permalink
Fix plugin not loading correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
rainbowdashlabs committed Jun 30, 2024
1 parent f22fc65 commit bd0a2ec
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions BloodNight-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ plugins {

dependencies {
implementation(project(":BloodNight-api"))
implementation("org.bstats", "bstats-bukkit", "3.0.2")
bukkitLibrary(libs.bundles.eldoutil)
bukkitLibrary("net.kyori", "adventure-platform-bukkit", "4.3.3")
testImplementation("org.junit.jupiter", "junit-jupiter-api", "5.10.3")
Expand Down Expand Up @@ -49,6 +50,7 @@ publishing {

tasks {
shadowJar {
relocate("org.bstats", "de.eldoria.bloodnight.libs.bstats")
mergeServiceFiles()
archiveBaseName.set(project.parent?.name)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,11 @@
import net.kyori.adventure.text.format.NamedTextColor;
import net.kyori.adventure.text.format.TextDecoration;
import net.kyori.adventure.text.minimessage.tag.Tag;
import org.bstats.bukkit.Metrics;
import org.bstats.charts.MultiLineChart;
import org.bukkit.NamespacedKey;
import org.bukkit.configuration.serialization.ConfigurationSerializable;
import org.bukkit.configuration.serialization.ConfigurationSerialization;

import java.util.Arrays;
import java.util.HashMap;
Expand Down Expand Up @@ -179,6 +181,7 @@ private void registerListener() {

@Override
public List<Class<? extends ConfigurationSerializable>> getConfigSerialization() {
ConfigurationSerialization.registerClass(MapEntry.class);
return Arrays.asList(GeneralSettings.class, NightSelection.class, NightSettings.class, MobSettings.class,
MobSetting.class, VanillaMobSettings.class, WorldSettings.class, Drop.class, BossBarSettings.class,
MobSettings.MobTypes.class, SoundSettings.class, SoundEntry.class, PotionEffectSettings.class,
Expand All @@ -187,8 +190,8 @@ public List<Class<? extends ConfigurationSerializable>> getConfigSerialization()
}

private void enableMetrics() {
EldoMetrics metrics = new EldoMetrics(this, 9123);
if (metrics.isEnabled()) {
Metrics metrics = new Metrics(this, 9123);
if (EldoMetrics.isEnabled(this)) {
logger().info("§2Metrics enabled. Thank you! (> ^_^ )>");

metrics.addCustomChart(new MultiLineChart("update_settings", () -> {
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pluginManagement {
dependencyResolutionManagement {
versionCatalogs {
create("libs") {
version("eldoutil", "2.0.10")
version("eldoutil", "2.0.11")
library("eldoutil.core", "de.eldoria.util", "core").versionRef("eldoutil")
library("eldoutil.updater", "de.eldoria.util", "updater").versionRef("eldoutil")
library("eldoutil.messaging", "de.eldoria.util", "messaging").versionRef("eldoutil")
Expand Down

0 comments on commit bd0a2ec

Please sign in to comment.