mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 23:26:45 +01:00
Fixed admin chat being seen by everyone
This commit is contained in:
parent
e8deb0384a
commit
d73521e0a0
@ -8,6 +8,7 @@ Key:
|
|||||||
- Removal
|
- Removal
|
||||||
|
|
||||||
Version 1.3.10-dev
|
Version 1.3.10-dev
|
||||||
|
= Fixed admin chat being seen by everyone
|
||||||
= Fixed players never being removed from memory (memory leak)
|
= Fixed players never being removed from memory (memory leak)
|
||||||
|
|
||||||
Version 1.3.09
|
Version 1.3.09
|
||||||
|
@ -360,9 +360,9 @@ public class PlayerListener implements Listener {
|
|||||||
|
|
||||||
plugin.getLogger().info("[A]<" + playerName + "> " + chatEvent.getMessage());
|
plugin.getLogger().info("[A]<" + playerName + "> " + chatEvent.getMessage());
|
||||||
|
|
||||||
for (Player p : plugin.getServer().getOnlinePlayers()) {
|
for (Player otherPlayer : plugin.getServer().getOnlinePlayers()) {
|
||||||
if (Permissions.getInstance().adminChat(player) || player.isOp()) {
|
if (Permissions.getInstance().adminChat(otherPlayer) || otherPlayer.isOp()) {
|
||||||
p.sendMessage(prefix + chatEvent.getMessage());
|
otherPlayer.sendMessage(prefix + chatEvent.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user