mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 04:20:41 +00:00
do not show socialspy for own actions. Test #732
This commit is contained in:
parent
676f941bb8
commit
ac1f2badc7
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue