Skip to content

Commit

Permalink
Merge pull request #5 from TheNextLvl-net/dependencies
Browse files Browse the repository at this point in the history
update dependencies
  • Loading branch information
NonSwag authored Jun 27, 2024
2 parents 4ccc202 + dbb4060 commit 7982993
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
8 changes: 4 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
11 changes: 4 additions & 7 deletions src/main/java/net/thenextlvl/tweaks/TweaksPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 7982993

Please sign in to comment.