Allow players to send whispers to ignored admins.

Because those admins aren't ignorable, the mutual ignore principle
shouldn't apply.
This commit is contained in:
ryanhamshire 2015-12-15 20:21:58 -08:00
parent 5d5584241b
commit 745c4a2129

View File

@ -533,11 +533,11 @@ class PlayerEventHandler implements Listener
}
//ignore feature
if(!player.hasPermission("griefprevention.notignorable") && targetPlayer != null && targetPlayer.isOnline())
if(targetPlayer != null && targetPlayer.isOnline())
{
//if either is ignoring the other, cancel this command
playerData = this.dataStore.getPlayerData(player.getUniqueId());
if(playerData.ignoredPlayers.containsKey(targetPlayer.getUniqueId()))
if(playerData.ignoredPlayers.containsKey(targetPlayer.getUniqueId()) && !targetPlayer.hasPermission("griefprevention.notignorable"))
{
event.setCancelled(true);
GriefPrevention.sendMessage(player, TextMode.Err, Messages.IsIgnoringYou);