Fixed a few more mistakes >.>

This commit is contained in:
nossr50 2010-12-15 16:47:34 -08:00
parent af8c4772fc
commit c1fff71e33
3 changed files with 4 additions and 3 deletions

View File

@ -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;
}

View File

@ -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);
}
}

View File

@ -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));}