do not show socialspy for own actions. Test #732

This commit is contained in:
ementalo 2011-09-20 00:15:13 +01:00
parent 676f941bb8
commit ac1f2badc7

View File

@ -476,7 +476,8 @@ public class EssentialsPlayerListener extends PlayerListener
{
for (Player player : ess.getServer().getOnlinePlayers())
{
if (ess.getUser(player).isSocialSpyEnabled())
User spyer = ess.getUser(player);
if (spyer.isSocialSpyEnabled() && !user.equals(spyer))
{
player.sendMessage(user.getDisplayName() + " : " + event.getMessage());
}