mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 22:14:49 +00:00
Register permissions
Parent nodes define inheritance, simplifying perm checks. Registration makes some systems happy
This commit is contained in:
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)
|
||||
|
||||
Reference in new issue
Block a user