Simplefied some code

This commit is contained in:
Tim Visée 2015-11-21 15:46:10 +01:00
parent f8cf9e2e48
commit cfaece3eae

View File

@ -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