v1.2.2 - Added support for 1.20.2

This commit is contained in:
2023-11-19 11:39:33 +01:00
parent 524510ae14
commit 0227814e72
8 changed files with 22 additions and 66 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_20_R1))
Version.ServerVersion.isCurrentHigher(Version.ServerVersion.v1_20_R2))
{
throw new Exception("The server version is not supported! Update to a version between 1.12 - 1.20.1 to run this plugin.");
throw new Exception("The server version is not supported! Update to a version between 1.12 - 1.20.2 to run this plugin.");
}
if (this.reload()) {

View File

@ -27,7 +27,8 @@ public class Version {
v1_18_R2,
v1_19_R1,
v1_19_R2,
v1_20_R1;
v1_20_R1,
v1_20_R2;
private int value;