mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-30 00:56:47 +01:00
Admin chat dupe fix
This commit is contained in:
parent
64871b4c37
commit
7c01fced68
@ -55,18 +55,10 @@ public class ACommand implements CommandExecutor {
|
|||||||
aMessage = aMessage + " " + args[i];
|
aMessage = aMessage + " " + args[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Users.getProfile(player).toggleAdminChat();
|
Users.getProfile(player).toggleAdminChat();
|
||||||
player.chat(aMessage);
|
player.chat(aMessage);
|
||||||
Users.getProfile(player).toggleAdminChat();
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user