diff --git a/vMinecraftCommands.java b/vMinecraftCommands.java index 4cf867179..fb07c088c 100644 --- a/vMinecraftCommands.java +++ b/vMinecraftCommands.java @@ -186,7 +186,7 @@ public class vMinecraftCommands{ //===================================================================== public static int freeze(Player player, String[] args){ if(player.canUseCommand("/freeze") && vMinecraftSettings.getInstance().freeze()){ - if (args.length < 2){ + if (args.length < 1){ vMinecraftChat.gmsg(Colors.Rose + "Usage is /freeze [Player]"); return EXIT_SUCCESS; } diff --git a/vMinecraftListener.java b/vMinecraftListener.java index 99e38fc6b..44426e58b 100644 --- a/vMinecraftListener.java +++ b/vMinecraftListener.java @@ -18,7 +18,7 @@ public class vMinecraftListener extends PluginListener { log.log(Level.INFO, "vMinecraft disabled"); } public void onPlayerMove(Player player, Location from, Location to) { - if(vMinecraftSettings.frozenplayers.contains(player)){ + if(vMinecraftSettings.getInstance().isFrozen(player)){ player.teleportTo(from); } } diff --git a/vMinecraftSettings.java b/vMinecraftSettings.java index a4b15e654..3eb784b88 100644 --- a/vMinecraftSettings.java +++ b/vMinecraftSettings.java @@ -158,7 +158,7 @@ public class vMinecraftSettings { ignore = properties.getBoolean("ignore",true); colors = properties.getBoolean("colors",true); nick = properties.getBoolean("nick",true); - freeze = properties.getBoolean("freeze",true); + freeze = properties.getBoolean("/freeze",true); cmdFabulous = properties.getBoolean("/fabulous",true); cmdPromote = properties.getBoolean("/promote",true); cmdDemote = properties.getBoolean("/demote",true); @@ -235,6 +235,7 @@ public class vMinecraftSettings { //EzModo methods public boolean cmdEzModo() {return cmdEzModo;} public boolean isEzModo(String playerName) {return ezModo.contains(playerName);} + public boolean isFrozen(String playerName) {return frozenplayers.contains(playerName);} public boolean isAdminToggled(String playerName) {return adminChatList.contains(playerName);} public void removeEzModo(String playerName) {ezModo.remove(ezModo.indexOf(playerName));} public void removeAdminToggled(String playerName) {adminChatList.remove(adminChatList.indexOf(playerName));}