Special eavesdrop mode specific to signs.

This commit is contained in:
ryanhamshire
2015-05-18 15:48:45 -07:00
parent 0615c17884
commit b6df5378b3
2 changed files with 6 additions and 2 deletions
@@ -136,12 +136,12 @@ public class BlockEventHandler implements Listener
PlayerEventHandler.makeSocialLogEntry(player.getName(), signMessage);
playerData.lastMessage = signMessage;
if(!player.hasPermission("griefprevention.eavesdrop"))
if(!player.hasPermission("griefprevention.eavesdropsigns"))
{
Collection<Player> players = (Collection<Player>)GriefPrevention.instance.getServer().getOnlinePlayers();
for(Player otherPlayer : players)
{
if(otherPlayer.hasPermission("griefprevention.eavesdrop"))
if(otherPlayer.hasPermission("griefprevention.eavesdropsigns"))
{
otherPlayer.sendMessage(ChatColor.GRAY + player.getName() + signMessage);
}