mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
Misc Fixes
This commit is contained in:
parent
acf1b5261d
commit
2fb729fbfe
@ -34,16 +34,17 @@ public class vMinecraftCommands{
|
|||||||
cl.register("/fabulous", "fabulous", "makes text SUUUPER");
|
cl.register("/fabulous", "fabulous", "makes text SUUUPER");
|
||||||
cl.register("/whois", "whois", "/whois [user]");
|
cl.register("/whois", "whois", "/whois [user]");
|
||||||
cl.register("/who", "who");
|
cl.register("/who", "who");
|
||||||
|
cl.registerAlias("/playerlist", "/who");
|
||||||
cl.register("/say", "say");
|
cl.register("/say", "say");
|
||||||
cl.register("/slay", "slay", "Kill target player");
|
cl.register("/slay", "slay", "Kill target player");
|
||||||
cl.register("/ezmodo", "invuln", "Toggle invulnerability");
|
cl.register("/ezmodo", "invuln", "Toggle invulnerability");
|
||||||
cl.register("/ezlist", "ezlist", "List invulnerable players");
|
cl.register("/ezlist", "ezlist", "List invulnerable players");
|
||||||
cl.register("/heal", "heal", "heal yourself or other players");
|
cl.register("/heal", "heal", "heal yourself or other players");
|
||||||
cl.register("/suicide", "suicide", "kill yourself... you loser");
|
cl.register("/suicide", "suicide", "kill yourself... you loser");
|
||||||
cl.register("/a", "adminChatToggle", "toggle admin chat for every message");
|
|
||||||
cl.register("/modify", "modifySplit");
|
|
||||||
cl.registerAlias("/playerlist", "/who");
|
|
||||||
cl.registerAlias("/wrists", "/suicide");
|
cl.registerAlias("/wrists", "/suicide");
|
||||||
|
cl.register("/a", "adminChatToggle", "toggle admin chat for every message");
|
||||||
|
cl.registerAlias("/admin", "/a");
|
||||||
|
cl.register("/modify", "modifySplit");
|
||||||
cl.registerAlias("/ci", "/clearinventory");
|
cl.registerAlias("/ci", "/clearinventory");
|
||||||
}
|
}
|
||||||
//=====================================================================
|
//=====================================================================
|
||||||
@ -54,23 +55,24 @@ public class vMinecraftCommands{
|
|||||||
// send will be piped to admin chat.
|
// send will be piped to admin chat.
|
||||||
//=====================================================================
|
//=====================================================================
|
||||||
|
|
||||||
public static int adminChatToggle(Player player)
|
public static int adminChatToggle(Player player, String[] args)
|
||||||
{
|
{
|
||||||
if(vMinecraftSettings.getInstance().adminChatToggle())
|
if(vMinecraftSettings.getInstance().adminChatToggle())
|
||||||
{
|
{
|
||||||
//If the player is already toggled for admin chat, remove them
|
//If the player is already toggled for admin chat, remove them
|
||||||
if (vMinecraftSettings.getInstance().isAdminToggled(player.getName())) {
|
if (vMinecraftSettings.getInstance().isAdminToggled(player.getName())) {
|
||||||
player.sendMessage(Colors.Red + "Admin Chat Toggle = off");
|
player.sendMessage(Colors.Red + "Admin Chat Toggle = off");
|
||||||
vMinecraftSettings.getInstance().removeAdminToggled(player.getName());
|
vMinecraftSettings.getInstance().removeAdminToggled(player.getName());
|
||||||
//Otherwise include them
|
//Otherwise include them
|
||||||
} else {
|
} else {
|
||||||
player.sendMessage(Colors.Blue + "Admin Chat Toggled on");
|
player.sendMessage(Colors.Blue + "Admin Chat Toggled on");
|
||||||
vMinecraftSettings.getInstance().addAdminToggled(player.getName());
|
vMinecraftSettings.getInstance().addAdminToggled(player.getName());
|
||||||
}
|
}
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
return EXIT_FAIL;
|
return EXIT_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
//=====================================================================
|
//=====================================================================
|
||||||
//Function: heal (/heal)
|
//Function: heal (/heal)
|
||||||
//Input: Player player: The player using the command
|
//Input: Player player: The player using the command
|
||||||
|
Loading…
Reference in New Issue
Block a user