Finally, Cauldron 1.7.10 compatible.

This commit is contained in:
filoghost 2014-11-10 13:14:06 +01:00
parent c8d2a0f097
commit 0f3147f11d

View File

@ -26,7 +26,8 @@ public class VersionUtils {
} }
public static boolean isMCPCOrCauldron() { public static boolean isMCPCOrCauldron() {
return Bukkit.getVersion().toLowerCase().contains("mcpc") || Bukkit.getVersion().toLowerCase().contains("cauldron"); // This returns the server software e.g. CraftBukkit, Cauldron-MCPC-Plus, ...
return Bukkit.getName().toLowerCase().contains("mcpc") || Bukkit.getName().toLowerCase().contains("cauldron");
} }
} }