Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static String getVersion() {
- String packageName = Bukkit.getServer().getClass().getPackage().getName();
- // Get full package string of CraftServer.
- // org.bukkit.craftbukkit.versionstring (or for pre-refactor, just org.bukkit.craftbukkit
- String version = packageName.substring(packageName.lastIndexOf('.') + 1);
- return version;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement