Fixed admin chat being seen by everyone

This commit is contained in:
bm01 2012-06-25 15:05:20 +02:00
parent e8deb0384a
commit d73521e0a0
2 changed files with 4 additions and 3 deletions

View File

@ -8,6 +8,7 @@ Key:
- Removal
Version 1.3.10-dev
= Fixed admin chat being seen by everyone
= Fixed players never being removed from memory (memory leak)
Version 1.3.09

View File

@ -360,9 +360,9 @@ public class PlayerListener implements Listener {
plugin.getLogger().info("[A]<" + playerName + "> " + chatEvent.getMessage());
for (Player p : plugin.getServer().getOnlinePlayers()) {
if (Permissions.getInstance().adminChat(player) || player.isOp()) {
p.sendMessage(prefix + chatEvent.getMessage());
for (Player otherPlayer : plugin.getServer().getOnlinePlayers()) {
if (Permissions.getInstance().adminChat(otherPlayer) || otherPlayer.isOp()) {
otherPlayer.sendMessage(prefix + chatEvent.getMessage());
}
}