mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 22:56:45 +01:00
Fixed a few more mistakes >.>
This commit is contained in:
parent
af8c4772fc
commit
c1fff71e33
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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));}
|
||||
|
Loading…
Reference in New Issue
Block a user