mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-08-31 09:39:36 +02: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