mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 14:38:56 +00:00
Started working on KillAura check
This commit is contained in:
1 parent
804b5ea944
commit
e37a6b8764
9 files changed
+146
-6
No files matched your search
@@ -0,0 +1,15 @@
|
||||
package net.gravitydevelopment.anticheat.util;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
|
||||
public class VersionUtil {
|
||||
|
||||
public static String getVersion() {
|
||||
String version = "";
|
||||
try {
|
||||
version = Bukkit.getServer().getClass().getPackage().getName().replace(".", ",").split(",")[3];
|
||||
} catch (ArrayIndexOutOfBoundsException whatVersionAreYouUsingException) {}
|
||||
return version;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user