mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-12-24 17:47:44 +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){
|
public static int freeze(Player player, String[] args){
|
||||||
if(player.canUseCommand("/freeze") && vMinecraftSettings.getInstance().freeze()){
|
if(player.canUseCommand("/freeze") && vMinecraftSettings.getInstance().freeze()){
|
||||||
if (args.length < 2){
|
if (args.length < 1){
|
||||||
vMinecraftChat.gmsg(Colors.Rose + "Usage is /freeze [Player]");
|
vMinecraftChat.gmsg(Colors.Rose + "Usage is /freeze [Player]");
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
@ -18,7 +18,7 @@ public class vMinecraftListener extends PluginListener {
|
|||||||
log.log(Level.INFO, "vMinecraft disabled");
|
log.log(Level.INFO, "vMinecraft disabled");
|
||||||
}
|
}
|
||||||
public void onPlayerMove(Player player, Location from, Location to) {
|
public void onPlayerMove(Player player, Location from, Location to) {
|
||||||
if(vMinecraftSettings.frozenplayers.contains(player)){
|
if(vMinecraftSettings.getInstance().isFrozen(player)){
|
||||||
player.teleportTo(from);
|
player.teleportTo(from);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -158,7 +158,7 @@ public class vMinecraftSettings {
|
|||||||
ignore = properties.getBoolean("ignore",true);
|
ignore = properties.getBoolean("ignore",true);
|
||||||
colors = properties.getBoolean("colors",true);
|
colors = properties.getBoolean("colors",true);
|
||||||
nick = properties.getBoolean("nick",true);
|
nick = properties.getBoolean("nick",true);
|
||||||
freeze = properties.getBoolean("freeze",true);
|
freeze = properties.getBoolean("/freeze",true);
|
||||||
cmdFabulous = properties.getBoolean("/fabulous",true);
|
cmdFabulous = properties.getBoolean("/fabulous",true);
|
||||||
cmdPromote = properties.getBoolean("/promote",true);
|
cmdPromote = properties.getBoolean("/promote",true);
|
||||||
cmdDemote = properties.getBoolean("/demote",true);
|
cmdDemote = properties.getBoolean("/demote",true);
|
||||||
@ -235,6 +235,7 @@ public class vMinecraftSettings {
|
|||||||
//EzModo methods
|
//EzModo methods
|
||||||
public boolean cmdEzModo() {return cmdEzModo;}
|
public boolean cmdEzModo() {return cmdEzModo;}
|
||||||
public boolean isEzModo(String playerName) {return ezModo.contains(playerName);}
|
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 boolean isAdminToggled(String playerName) {return adminChatList.contains(playerName);}
|
||||||
public void removeEzModo(String playerName) {ezModo.remove(ezModo.indexOf(playerName));}
|
public void removeEzModo(String playerName) {ezModo.remove(ezModo.indexOf(playerName));}
|
||||||
public void removeAdminToggled(String playerName) {adminChatList.remove(adminChatList.indexOf(playerName));}
|
public void removeAdminToggled(String playerName) {adminChatList.remove(adminChatList.indexOf(playerName));}
|
||||||
|
Loading…
Reference in New Issue
Block a user