diff --git a/src/main/java/com/gmail/nossr50/commands/party/ACommand.java b/src/main/java/com/gmail/nossr50/commands/party/ACommand.java index 6e3517296..726c2658a 100644 --- a/src/main/java/com/gmail/nossr50/commands/party/ACommand.java +++ b/src/main/java/com/gmail/nossr50/commands/party/ACommand.java @@ -76,9 +76,9 @@ public class ACommand implements CommandExecutor { plugin.getLogger().info("[A]<" + player.getName() + "> " + message); - for (Player p : plugin.getServer().getOnlinePlayers()) { - if (Permissions.getInstance().adminChat(player) || player.isOp()) { - p.sendMessage(prefix + message); + for (Player otherPlayer : plugin.getServer().getOnlinePlayers()) { + if (Permissions.getInstance().adminChat(otherPlayer) || otherPlayer.isOp()) { + otherPlayer.sendMessage(prefix + message); } } }