mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 22:56:45 +01:00
Can't believe I missed this
This commit is contained in:
parent
4092f7397b
commit
098d5942aa
@ -1053,11 +1053,9 @@ private static HashMap<String, Player> hidden = new HashMap<String, Player>();
|
|||||||
if(vConfig.getInstance().isAdminToggled(player.getName())){
|
if(vConfig.getInstance().isAdminToggled(player.getName())){
|
||||||
vConfig.getInstance().removeAdminToggled(player.getName());
|
vConfig.getInstance().removeAdminToggled(player.getName());
|
||||||
}
|
}
|
||||||
//Make sure the user has access to the command
|
|
||||||
if(!player.canUseCommand("/p")) return EXIT_FAIL;
|
|
||||||
|
|
||||||
//If the player is already toggled for party chat, remove them
|
//If the player is already toggled for party chat, remove them
|
||||||
if (vConfig.getInstance().isPartyToggled(null)) {
|
if (vConfig.getInstance().isPartyToggled(player.getName())) {
|
||||||
player.sendMessage(Colors.Red + "Party Chat Toggle = off");
|
player.sendMessage(Colors.Red + "Party Chat Toggle = off");
|
||||||
vConfig.getInstance().removePartyToggled(player.getName());
|
vConfig.getInstance().removePartyToggled(player.getName());
|
||||||
//Otherwise include them
|
//Otherwise include them
|
||||||
|
@ -36,8 +36,8 @@ public class vListener extends PluginListener {
|
|||||||
public boolean onChat(Player player, String message){
|
public boolean onChat(Player player, String message){
|
||||||
|
|
||||||
if (message.startsWith("@") ||
|
if (message.startsWith("@") ||
|
||||||
vConfig.getInstance().isAdminToggled(player.getName()))
|
vConfig.getInstance().isAdminToggled(player.getName()))
|
||||||
return vChat.adminChat(player, message);
|
return vChat.adminChat(player, message);
|
||||||
//PartyChat
|
//PartyChat
|
||||||
if((message.startsWith("!")) ||
|
if((message.startsWith("!")) ||
|
||||||
vConfig.getInstance().isPartyToggled(player.getName()))
|
vConfig.getInstance().isPartyToggled(player.getName()))
|
||||||
|
Loading…
Reference in New Issue
Block a user