mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-03 09:10:01 +01:00
Fix NPE #882
This commit is contained in:
parent
168ffa9131
commit
6f46b7d1cb
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user