mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 06:28:52 +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
@@ -84,17 +84,12 @@ public class CheckManager
|
||||
return exemptList.containsEntry(player.getName(), type);
|
||||
}
|
||||
|
||||
private boolean hasPermission(Player player, String permission)
|
||||
{
|
||||
return player.hasPermission(permission) || player.hasPermission("anticheat.exempt");
|
||||
}
|
||||
|
||||
public boolean willCheck(Player player, CheckType type)
|
||||
{
|
||||
return isActive(type)
|
||||
&& manager.getConfiguration().checkInWorld(player.getWorld())
|
||||
&& !isExempt(player, type)
|
||||
&& !hasPermission(player, type.getPermission());
|
||||
&& !player.hasPermission(type.getPermission());
|
||||
}
|
||||
|
||||
public int getExempt()
|
||||
|
||||
Reference in new issue
Block a user