mirror of
https://github.com/taoneill/war.git
synced 2024-12-11 03:23:49 +01:00
Don't notify the command sender twice if he's in the lobby or on a team while resetting zone.
This commit is contained in:
parent
31a2deef0f
commit
d4d5778175
@ -81,8 +81,9 @@ public class PartialZoneResetJob extends BukkitRunnable implements Cloneable {
|
||||
private void sendMessageToAllWarzonePlayers(String message) {
|
||||
for (Player player : War.war.getServer().getOnlinePlayers()) {
|
||||
ZoneLobby lobby = ZoneLobby.getLobbyByLocation(player);
|
||||
if (zone.getPlayers().contains(player)
|
||||
|| (lobby != null && lobby.getZone() == zone)) {
|
||||
if (player != PartialZoneResetJob.senderToNotify
|
||||
&& (zone.getPlayers().contains(player)
|
||||
|| (lobby != null && lobby.getZone() == zone))) {
|
||||
War.war.msg(player, message);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user