From 653ba71f737db5c1f84ca5531896ae78adecf45f Mon Sep 17 00:00:00 2001 From: LabodiDavid Date: Thu, 27 Mar 2025 23:33:57 +0100 Subject: [PATCH] Support for 1.21.5 --- pom.xml | 4 ++-- src/main/java/hu/ditservices/STPlugin.java | 4 ++-- src/main/java/hu/ditservices/utils/Version.java | 3 ++- src/main/resources/config.yml | 9 +++++++++ 4 files changed, 15 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index f019522..bb46271 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ hu.ditservices SimplifyTools - 1.2.3 + 1.2.4-SNAPSHOT jar SimplifyTools @@ -126,7 +126,7 @@ org.spigotmc spigot-api - 1.21.4-R0.1-SNAPSHOT + 1.21.5-R0.1-SNAPSHOT provided diff --git a/src/main/java/hu/ditservices/STPlugin.java b/src/main/java/hu/ditservices/STPlugin.java index 535e6f8..fee7629 100644 --- a/src/main/java/hu/ditservices/STPlugin.java +++ b/src/main/java/hu/ditservices/STPlugin.java @@ -99,9 +99,9 @@ public final class STPlugin extends JavaPlugin implements CommandExecutor, Liste try { this.ServerStartTime = ManagementFactory.getRuntimeMXBean().getStartTime(); if (Version.ServerVersion.isCurrentLower(Version.ServerVersion.v1_12_R1) || - Version.ServerVersion.isCurrentHigher(Version.ServerVersion.v1_21_4_R1)) + Version.ServerVersion.isCurrentHigher(Version.ServerVersion.v1_21_5_R1)) { - throw new Exception("The server version is not supported! Update to a version between 1.12 - 1.21.4 to run this plugin."); + throw new Exception("The server version is not supported! Update to a version between 1.12 - 1.21.5 to run this plugin."); } if (this.reload()) { diff --git a/src/main/java/hu/ditservices/utils/Version.java b/src/main/java/hu/ditservices/utils/Version.java index 4da302e..0f1e2c3 100644 --- a/src/main/java/hu/ditservices/utils/Version.java +++ b/src/main/java/hu/ditservices/utils/Version.java @@ -37,7 +37,8 @@ public class Version { v1_21_1_R1, v1_21_2_R1, v1_21_3_R1, - v1_21_4_R1; + v1_21_4_R1, + v1_21_5_R1; private int value; diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index 51878ad..c0abb55 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -74,6 +74,15 @@ Saving: broadcastMsgProgress: '{PREFIX}Auto save in progress..' broadcastMsgDone: '{PREFIX}Auto save done.' +# Server Password options +# You can configure a same password for all players on the server. +# Players not logged in can't move, cant build/destroy. +ServerPassword: + enabled: false + password: 'changeme' + exceptOps: true # Server operators don't need to login. + + # Cooldown options (only applicable for this plugin!) Cooldown: enabled: true