mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 22:56:45 +01:00
This is why I hate copy pasting
This commit is contained in:
parent
e894f14989
commit
4092f7397b
@ -1056,14 +1056,14 @@ private static HashMap<String, Player> hidden = new HashMap<String, Player>();
|
|||||||
//Make sure the user has access to the command
|
//Make sure the user has access to the command
|
||||||
if(!player.canUseCommand("/p")) return EXIT_FAIL;
|
if(!player.canUseCommand("/p")) return EXIT_FAIL;
|
||||||
|
|
||||||
//If the player is already toggled for admin chat, remove them
|
//If the player is already toggled for party chat, remove them
|
||||||
if (vConfig.getInstance().isPartyToggled(null)) {
|
if (vConfig.getInstance().isPartyToggled(null)) {
|
||||||
player.sendMessage(Colors.Red + "Party Chat Toggle = off");
|
player.sendMessage(Colors.Red + "Party Chat Toggle = off");
|
||||||
vConfig.getInstance().removeAdminToggled(player.getName());
|
vConfig.getInstance().removePartyToggled(player.getName());
|
||||||
//Otherwise include them
|
//Otherwise include them
|
||||||
} else {
|
} else {
|
||||||
player.sendMessage(Colors.Blue + "Party Chat Toggled on");
|
player.sendMessage(Colors.Blue + "Party Chat Toggled on");
|
||||||
vConfig.getInstance().addAdminToggled(player.getName());
|
vConfig.getInstance().addPartyToggled(player.getName());
|
||||||
}
|
}
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user