diff --git a/build.gradle.kts b/build.gradle.kts index 765444b..cfecc0a 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -27,10 +27,10 @@ dependencies { compileOnly("net.thenextlvl.core:annotations:2.0.1") compileOnly("io.papermc.paper:paper-api:1.20.6-R0.1-SNAPSHOT") - implementation("net.thenextlvl.core:nbt:1.4.1") - implementation("net.thenextlvl.core:files:1.0.5-pre2") - implementation("net.thenextlvl.core:i18n:1.0.15") - implementation("net.thenextlvl.core:paper:1.3.0-pre1") + implementation("net.thenextlvl.core:nbt:1.4.2") + implementation("net.thenextlvl.core:files:1.0.5") + implementation("net.thenextlvl.core:i18n:1.0.18") + implementation("net.thenextlvl.core:paper:1.3.5") implementation("org.bstats:bstats-bukkit:3.0.2") annotationProcessor("org.projectlombok:lombok:1.18.32") diff --git a/src/main/java/net/thenextlvl/tweaks/TweaksPlugin.java b/src/main/java/net/thenextlvl/tweaks/TweaksPlugin.java index 67b29c4..9739c30 100644 --- a/src/main/java/net/thenextlvl/tweaks/TweaksPlugin.java +++ b/src/main/java/net/thenextlvl/tweaks/TweaksPlugin.java @@ -63,16 +63,13 @@ public class TweaksPlugin extends JavaPlugin { audience instanceof Player player ? player.locale() : Locale.US) .register("tweaks", Locale.US) .register("tweaks_german", Locale.GERMANY) - .fallback(Locale.US); + .miniMessage(bundle -> MiniMessage.builder().tags(TagResolver.resolver( + TagResolver.standard(), + Placeholder.component("prefix", bundle.component(Locale.US, "prefix")) + )).build()); @Override public void onLoad() { - bundle().miniMessage(MiniMessage.builder() - .tags(TagResolver.builder() - .resolvers(TagResolver.standard()) - .resolver(Placeholder.component("prefix", bundle.component(Locale.US, "prefix"))) - .build()) - .build()); var motd = config().serverConfig().motd(); if (motd != null) Bukkit.motd(MiniMessage.miniMessage().deserialize(motd)); }