1.18.1
This commit is contained in:
parent
a838423a94
commit
033a8a629b
4 changed files with 7 additions and 3 deletions
2
pom.xml
2
pom.xml
|
|
@ -37,7 +37,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.spigotmc</groupId>
|
<groupId>org.spigotmc</groupId>
|
||||||
<artifactId>spigot-api</artifactId>
|
<artifactId>spigot-api</artifactId>
|
||||||
<version>1.21.5-R0.1-SNAPSHOT</version>
|
<version>1.21.6-R0.1-SNAPSHOT</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|
|
||||||
|
|
@ -138,6 +138,9 @@ public class PlayerKits2 extends JavaPlugin {
|
||||||
case "1.21.5":
|
case "1.21.5":
|
||||||
serverVersion = ServerVersion.v1_21_R4;
|
serverVersion = ServerVersion.v1_21_R4;
|
||||||
break;
|
break;
|
||||||
|
case "1.21.6":
|
||||||
|
serverVersion = ServerVersion.v1_21_R5;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
serverVersion = ServerVersion.valueOf(packageName.replace("org.bukkit.craftbukkit.", ""));
|
serverVersion = ServerVersion.valueOf(packageName.replace("org.bukkit.craftbukkit.", ""));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,8 @@ public enum ServerVersion {
|
||||||
v1_21_R1,
|
v1_21_R1,
|
||||||
v1_21_R2,
|
v1_21_R2,
|
||||||
v1_21_R3,
|
v1_21_R3,
|
||||||
v1_21_R4;
|
v1_21_R4,
|
||||||
|
v1_21_R5;
|
||||||
|
|
||||||
public boolean serverVersionGreaterEqualThan(ServerVersion version1,ServerVersion version2){
|
public boolean serverVersionGreaterEqualThan(ServerVersion version1,ServerVersion version2){
|
||||||
return version1.ordinal() >= version2.ordinal();
|
return version1.ordinal() >= version2.ordinal();
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
main: pk.ajneb97.PlayerKits2
|
main: pk.ajneb97.PlayerKits2
|
||||||
version: 1.17.5
|
version: 1.18.1
|
||||||
name: PlayerKits2
|
name: PlayerKits2
|
||||||
api-version: 1.13
|
api-version: 1.13
|
||||||
softdepend: [Vault,PlaceholderAPI]
|
softdepend: [Vault,PlaceholderAPI]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue