v1.2.2 - Added support for 1.20.2
This commit is contained in:
@ -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()) {
|
||||
|
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user