Small change

This commit is contained in:
aPunch 2012-04-05 10:03:30 -05:00
parent 9f297df6d4
commit 8547e2e830
1 changed files with 1 additions and 2 deletions

View File

@ -48,7 +48,6 @@ import com.google.common.collect.Iterators;
public class Citizens extends JavaPlugin {
private final CitizensCharacterManager characterManager = new CitizensCharacterManager();
private final CommandManager commands = new CommandManager();
private boolean compatible;
private Settings config;
@ -132,8 +131,8 @@ public class Citizens extends JavaPlugin {
@Override
public void onEnable() {
// Disable if the server is not using the compatible Minecraft version
compatible = ((CraftServer) getServer()).getServer().getVersion().startsWith(COMPATIBLE_MC_VERSION);
String mcVersion = ((CraftServer) getServer()).getServer().getVersion();
compatible = mcVersion.startsWith(COMPATIBLE_MC_VERSION);
if (!compatible) {
Messaging.log(Level.SEVERE, "v" + getDescription().getVersion() + " is not compatible with Minecraft v"
+ mcVersion + ". Disabling.");