mirror of
https://github.com/songoda/SongodaCore.git
synced 2024-11-23 18:45:34 +01:00
preserve package name case
This commit is contained in:
parent
cb20a2a9bf
commit
a785fd5979
@ -7,8 +7,8 @@ public enum ServerVersion {
|
||||
|
||||
UNKNOWN, V1_7, V1_8, V1_9, V1_10, V1_11, V1_12, V1_13, V1_14, V1_15, V1_16, V1_17, V1_18, V1_19, V1_20;
|
||||
|
||||
private final static String serverPackagePath = Bukkit.getServer().getClass().getPackage().getName().toUpperCase();
|
||||
private final static String serverPackageVersion = serverPackagePath.substring(serverPackagePath.lastIndexOf('.') + 1);
|
||||
private final static String serverPackagePath = Bukkit.getServer().getClass().getPackage().getName();
|
||||
private final static String serverPackageVersion = serverPackagePath.substring(serverPackagePath.lastIndexOf('.') + 1).toUpperCase();
|
||||
private static ServerVersion serverVersion = UNKNOWN;
|
||||
static {
|
||||
for (ServerVersion version : values())
|
||||
|
Loading…
Reference in New Issue
Block a user