Support for 1.21.5

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

View File

@ -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()) {

View File

@ -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;