mirror of
https://github.com/TotalFreedomMC/TFGuilds.git
synced 2024-12-22 07:55:03 +00:00
don't send to the person who sent it
This commit is contained in:
parent
cd61afd3c8
commit
4261f36826
1 changed files with 7 additions and 0 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue