mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-25 14:46:45 +01:00
Don't send chat spy to message sender
This commit is contained in:
parent
d73dbf0c81
commit
a37ab10414
@ -962,6 +962,9 @@ public class PlayerEvents extends PlotListener implements Listener {
|
||||
.replace("%plot_id%", id.x + ";" + id.y).replace("%sender%", sender)
|
||||
.replace("%msg%", message);
|
||||
for (Player player : spies) {
|
||||
if (player.equals(event.getPlayer())) {
|
||||
continue;
|
||||
}
|
||||
player.sendMessage(spyMessage);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user