From f6fe915f3f03f883977ca23e22aeee60e2261141 Mon Sep 17 00:00:00 2001 From: Archy-X <63976867+Archy-X@users.noreply.github.com> Date: Fri, 14 Jun 2024 18:08:24 -0700 Subject: [PATCH] Remove unnecessary libraries --- build.gradle.kts | 9 +++++++-- .../dev/aurelium/auramobs/commands/AuraMobsCommand.java | 3 ++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index c605a38..d2e81d6 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -20,8 +20,9 @@ repositories { dependencies { implementation("net.objecthunter:exp4j:0.4.8") - implementation("com.github.Osiris-Team:Dream-Yaml:6.9") - implementation("com.github.Archy-X:Polyglot:d6debe617a") + implementation("com.github.Archy-X:Polyglot:1.2.1") { + exclude("org.yaml", "snakeyaml") + } implementation("co.aikar:acf-paper:0.5.1-SNAPSHOT") implementation("org.bstats:bstats-bukkit:3.0.2") compileOnly("dev.aurelium:auraskills-api-bukkit:2.1.2") @@ -38,6 +39,10 @@ tasks.withType { relocate("co.aikar.locales", "dev.aurelium.auramobs.locales") relocate("com.archyx.polyglot", "dev.aurelium.auramobs.polyglot") relocate("org.bstats", "dev.aurelium.auramobs.bstats") + relocate("net.kyori", "dev.aurelium.auramobs.kyori") + relocate("net.objecthunter.exp4j", "dev.aurelium.auramobs.exp4j") + relocate("org.spongepowered.configurate", "dev.aurelium.auramobs.configurate") + relocate("io.leangen.geantyref", "dev.aurelium.auramobs.geantyref") } java.sourceCompatibility = JavaVersion.VERSION_17 diff --git a/src/main/java/dev/aurelium/auramobs/commands/AuraMobsCommand.java b/src/main/java/dev/aurelium/auramobs/commands/AuraMobsCommand.java index 6a7c09c..b8d33a0 100644 --- a/src/main/java/dev/aurelium/auramobs/commands/AuraMobsCommand.java +++ b/src/main/java/dev/aurelium/auramobs/commands/AuraMobsCommand.java @@ -5,6 +5,7 @@ import co.aikar.commands.annotation.CommandPermission; import co.aikar.commands.annotation.Subcommand; import dev.aurelium.auramobs.AuraMobs; +import dev.aurelium.auramobs.util.ColorUtils; import org.bukkit.command.CommandSender; import java.util.Locale; @@ -25,7 +26,7 @@ public void onReload(CommandSender sender) { plugin.getConfigManager().loadConfig(); plugin.getPolyglot().getMessageManager().loadMessages(); plugin.setLanguage(new Locale(plugin.optionString("language"))); - sender.sendMessage(plugin.getMsg("commands.reload")); + sender.sendMessage(ColorUtils.colorMessage(plugin.getMsg("commands.reload"))); }