Don't send chat spy to message sender

This commit is contained in:
Alexander Söderberg 2020-05-03 18:13:54 +02:00
parent d73dbf0c81
commit a37ab10414
No known key found for this signature in database
GPG Key ID: C0207FF7EA146678

View File

@ -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);
}
}