Support for 1.21.5

This commit is contained in:
LabodiDavid 2025-03-27 23:33:57 +01:00
parent eda31a1df2
commit 653ba71f73
4 changed files with 15 additions and 5 deletions

View File

@ -6,7 +6,7 @@
<groupId>hu.ditservices</groupId> <groupId>hu.ditservices</groupId>
<artifactId>SimplifyTools</artifactId> <artifactId>SimplifyTools</artifactId>
<version>1.2.3</version> <version>1.2.4-SNAPSHOT</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>SimplifyTools</name> <name>SimplifyTools</name>
@ -126,7 +126,7 @@
<dependency> <dependency>
<groupId>org.spigotmc</groupId> <groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId> <artifactId>spigot-api</artifactId>
<version>1.21.4-R0.1-SNAPSHOT</version> <version>1.21.5-R0.1-SNAPSHOT</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<!-- from downloaded craftbukkit-x.xx.x.jar\META-INF\versions\ --> <!-- from downloaded craftbukkit-x.xx.x.jar\META-INF\versions\ -->

View File

@ -99,9 +99,9 @@ public final class STPlugin extends JavaPlugin implements CommandExecutor, Liste
try { try {
this.ServerStartTime = ManagementFactory.getRuntimeMXBean().getStartTime(); this.ServerStartTime = ManagementFactory.getRuntimeMXBean().getStartTime();
if (Version.ServerVersion.isCurrentLower(Version.ServerVersion.v1_12_R1) || 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()) { if (this.reload()) {

View File

@ -37,7 +37,8 @@ public class Version {
v1_21_1_R1, v1_21_1_R1,
v1_21_2_R1, v1_21_2_R1,
v1_21_3_R1, v1_21_3_R1,
v1_21_4_R1; v1_21_4_R1,
v1_21_5_R1;
private int value; private int value;

View File

@ -74,6 +74,15 @@ Saving:
broadcastMsgProgress: '{PREFIX}Auto save in progress..' broadcastMsgProgress: '{PREFIX}Auto save in progress..'
broadcastMsgDone: '{PREFIX}Auto save done.' 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 options (only applicable for this plugin!)
Cooldown: Cooldown:
enabled: true enabled: true