This commit is contained in:
Gabriele C 2016-07-27 09:50:34 +02:00
parent 168ffa9131
commit 6f46b7d1cb

View File

@ -38,6 +38,10 @@ public class GroupManagerHandler implements PermissionHandler {
@Override
public boolean hasPermissionOffline(String name, PermissionNode node) {
final AnjoPermissionsHandler handler = groupManager.getWorldsHolder().getWorldPermissionsByPlayerName(name);
if(handler == null) {
return false;
}
List<String> perms = handler.getAllPlayersPermissions(name);
return perms.contains(node.getNode());
}