mirror of
https://github.com/essentials/Essentials.git
synced 2025-09-30 16:19:11 +02:00
Prototype for grouping permissions into an enum
This commit is contained in:
@@ -86,6 +86,11 @@ public class User extends UserBase implements IUser
|
||||
|
||||
return ess.getPermissionsHandler().hasPermission(base, node);
|
||||
}
|
||||
|
||||
public boolean isAuthorized(IPermission permission)
|
||||
{
|
||||
return isAuthorized(permission.getPermission());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isAuthorized(IEssentialsCommand cmd)
|
||||
|
Reference in New Issue
Block a user