Fix for weird permissions broadcast issue, fixes bug #97

This commit is contained in:
adam committed 2012-06-20 22:45:49 -04:00
1 parent b68e25485a
commit bf2f6af86a
1 file changed
+6 -2
@@ -39,9 +39,13 @@ public final class Utilities
public static void alert(String[] message)
{
for (String msg : message)
for(Player player : Bukkit.getOnlinePlayers())
{
Bukkit.broadcast(msg, "anticheat.alert");
if(player.hasPermission("anticheat.alert"));
for (String msg : message)
{
player.sendMessage(msg);
}
}
if (Anticheat.getManager().getConfiguration().logConsole())
{