mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Fixed admin chat being seen by everyone
This commit is contained in:
parent
e8deb0384a
commit
d73521e0a0
@ -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
|
||||
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user