Register permissions

Parent nodes define inheritance,
  simplifying perm checks.
Registration makes some systems happy
This commit is contained in:
Matt Baxter committed 2012-06-11 22:04:21 -04:00
1 parent 586f586142
commit 74a6a8e862
4 files changed
+141 -38

No files matched your search

@@ -40,16 +40,10 @@ public final class Utilities
}
public static void alert(String [] message)
{
for(Player p : Bukkit.getServer().getOnlinePlayers())
for(String msg : message)
{
if(p.hasPermission("anticheat.alert") || p.hasPermission("anticheat.admin") || p.hasPermission("anticheat.mod") || p.isOp())
{
for(String msg : message)
{
p.sendMessage(msg);
}
}
}
Bukkit.broadcast(msg, "anticheat.alert");
}
if(Anticheat.getManager().getConfiguration().logConsole())
{
for(String msg : message)