mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 15:16:45 +01:00
Fixed some logic errors with the new mcchatspy command
This commit is contained in:
parent
b34f3a1779
commit
f4ead570d4
@ -56,9 +56,12 @@ public abstract class ChatManager {
|
|||||||
Party adminParty = UserManager.getPlayer(player).getParty();
|
Party adminParty = UserManager.getPlayer(player).getParty();
|
||||||
|
|
||||||
//Only message admins not part of this party
|
//Only message admins not part of this party
|
||||||
if(adminParty != null && !adminParty.getName().equalsIgnoreCase(partyChatEvent.getParty()))
|
if(adminParty != null)
|
||||||
{
|
{
|
||||||
//TODO: Incorporate JSON
|
//TODO: Incorporate JSON
|
||||||
|
if(!adminParty.getName().equalsIgnoreCase(partyChatEvent.getParty()))
|
||||||
|
player.sendMessage(ChatColor.GOLD+"[SPY: "+ChatColor.GREEN+partyChatEvent.getParty()+ChatColor.GOLD+"] "+message);
|
||||||
|
} else {
|
||||||
player.sendMessage(ChatColor.GOLD+"[SPY: "+ChatColor.GREEN+partyChatEvent.getParty()+ChatColor.GOLD+"] "+message);
|
player.sendMessage(ChatColor.GOLD+"[SPY: "+ChatColor.GREEN+partyChatEvent.getParty()+ChatColor.GOLD+"] "+message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -76,7 +76,7 @@ public class McMMOPlayer {
|
|||||||
|
|
||||||
private boolean abilityUse = true;
|
private boolean abilityUse = true;
|
||||||
private boolean godMode;
|
private boolean godMode;
|
||||||
private boolean chatSpy = true;
|
private boolean chatSpy = false; //Off by default
|
||||||
|
|
||||||
private final Map<SuperAbility, Boolean> abilityMode = new HashMap<SuperAbility, Boolean>();
|
private final Map<SuperAbility, Boolean> abilityMode = new HashMap<SuperAbility, Boolean>();
|
||||||
private final Map<SuperAbility, Boolean> abilityInformed = new HashMap<SuperAbility, Boolean>();
|
private final Map<SuperAbility, Boolean> abilityInformed = new HashMap<SuperAbility, Boolean>();
|
||||||
|
Loading…
Reference in New Issue
Block a user