mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-06 02:51:32 +01:00
do not show socialspy for own actions. Test #732
This commit is contained in:
parent
676f941bb8
commit
ac1f2badc7
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user