Skip to content

Commit 12511b0

Browse files
committed
Update to 1.21.9
- Exclude temporary dependencies for `i18n` until adventure is stable - Update Minecraft version to 1.21.9 - Update API version to 1.21.9 - Update supported game versions in `gradle.properties`
1 parent 26a311e commit 12511b0

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

build.gradle.kts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ dependencies {
3535

3636
implementation("net.thenextlvl.core:adapters:2.0.3")
3737
implementation("net.thenextlvl.core:files:3.0.1")
38-
implementation("net.thenextlvl.core:i18n:3.2.2")
38+
implementation("net.thenextlvl.core:i18n:3.2.2") {
39+
// todo: remove – temp solution until adventure is stable
40+
exclude("net.kyori", "adventure-text-logger-slf4j")
41+
exclude("net.kyori", "adventure-text-minimessage")
42+
}
3943
implementation("net.thenextlvl.core:paper:2.3.1")
4044
implementation("net.thenextlvl:nbt:3.0.1")
4145
implementation("org.bstats:bstats-bukkit:3.1.1-SNAPSHOT")
@@ -47,14 +51,14 @@ tasks.shadowJar {
4751
}
4852

4953
tasks.runServer {
50-
minecraftVersion("1.21.7")
54+
minecraftVersion("1.21.9")
5155
}
5256

5357
paper {
5458
name = "Tweaks"
5559
main = "net.thenextlvl.tweaks.TweaksPlugin"
5660
description = "A useful command collection"
57-
apiVersion = "1.21.5"
61+
apiVersion = "1.21.9"
5862
website = "https://thenextlvl.net"
5963
authors = listOf("CyntrixAlgorithm", "NonSwag")
6064
load = BukkitPluginDescription.PluginLoadOrder.POSTWORLD

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
kotlin.code.style=official
2-
gameVersions=1.21.5,1.21.6,1.21.7,1.21.8
2+
gameVersions=1.21.9

src/main/java/net/thenextlvl/tweaks/model/CommandConfig.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,7 @@ public final class CommandConfig {
9393

9494
private boolean isProxyEnabled() {
9595
var plugin = JavaPlugin.getPlugin(TweaksPlugin.class);
96-
return plugin.getServer().spigot().getPaperConfig().getBoolean("proxies.velocity.enabled")
97-
|| plugin.getServer().spigot().getSpigotConfig().getBoolean("settings.bungeecord");
96+
return plugin.getServer().getServerConfig().isProxyEnabled();
9897
}
9998

10099
public static class CommandDefinition {

0 commit comments

Comments
 (0)