From 7c01fced68a1e7b386abe81b185ec3242ac7ce3e Mon Sep 17 00:00:00 2001 From: NuclearW Date: Wed, 18 Apr 2012 12:49:06 -0400 Subject: [PATCH] Admin chat dupe fix --- .../java/com/gmail/nossr50/commands/party/ACommand.java | 8 -------- 1 file changed, 8 deletions(-) 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 14ab0c893..e8c9bb9f2 100644 --- a/src/main/java/com/gmail/nossr50/commands/party/ACommand.java +++ b/src/main/java/com/gmail/nossr50/commands/party/ACommand.java @@ -54,19 +54,11 @@ public class ACommand implements CommandExecutor { for (int i = 1; i <= args.length - 1; i++) { aMessage = aMessage + " " + args[i]; } - Users.getProfile(player).toggleAdminChat(); player.chat(aMessage); Users.getProfile(player).toggleAdminChat(); - String name = player.getName(); - String aPrefix = ChatColor.AQUA + "{" + ChatColor.WHITE + name + ChatColor.AQUA + "} "; - Bukkit.getLogger().info("[A]<" + name + "> " + aMessage); - for (Player herp : Bukkit.getServer().getOnlinePlayers()) { - if (mcPermissions.getInstance().adminChat(herp) || herp.isOp()) - herp.sendMessage(aPrefix + aMessage); - } return true; }