don't send to the person who sent it

This commit is contained in:
Super_ 2020-08-03 16:56:23 -04:00
parent cd61afd3c8
commit 4261f36826

View file

@ -296,10 +296,17 @@ public class Guild
GLog.info(Common.tl("%s%[%p%Guild Chat %s%| %p%" + GUtil.colorize(name) + "%s%] %p%" + as + ChatColor.WHITE + ": %p%" + msg));
}
Player sender = Bukkit.getPlayer(as);
for (Player player : Bukkit.getOnlinePlayers())
{
if (Common.CHAT_SPY.contains(player))
{
if (sender != null)
{
if (player == sender)
continue;
}
player.sendMessage(GUtil.colorize("&7[GUILD CHAT SPY | " + GUtil.colorize(name) + "] " + as + ": " + msg));
}
}