mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-10-31 07:39:42 +01:00
Simplefied some code
This commit is contained in:
parent
f8cf9e2e48
commit
cfaece3eae
@ -480,9 +480,7 @@ public class PermissionsManager {
|
||||
case ESSENTIALS_GROUP_MANAGER:
|
||||
// Essentials Group Manager
|
||||
final AnjoPermissionsHandler handler = groupManagerPerms.getWorldsHolder().getWorldPermissions(player);
|
||||
if(handler == null)
|
||||
return false;
|
||||
return handler.inGroup(player.getName(), groupName);
|
||||
return handler != null && handler.inGroup(player.getName(), groupName);
|
||||
|
||||
case VAULT:
|
||||
// Vault
|
||||
|
Loading…
Reference in New Issue
Block a user