mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-12-25 10:07:37 +01:00
fabric-1.18: fix builtin permissions handling
This commit is contained in:
parent
ebdab5e706
commit
86a53e6729
@ -307,7 +307,7 @@ public class DynmapPlugin {
|
||||
|
||||
boolean hasPerm(PlayerEntity psender, String permission) {
|
||||
PermissionsHandler ph = PermissionsHandler.getHandler();
|
||||
if ((psender != null) && ph.hasPermission(psender.getName().getString(), permission)) {
|
||||
if ((ph != null) && (psender != null) && ph.hasPermission(psender.getName().getString(), permission)) {
|
||||
return true;
|
||||
}
|
||||
return permissions.has(psender, permission);
|
||||
@ -315,7 +315,7 @@ public class DynmapPlugin {
|
||||
|
||||
boolean hasPermNode(PlayerEntity psender, String permission) {
|
||||
PermissionsHandler ph = PermissionsHandler.getHandler();
|
||||
if ((psender != null) && ph.hasPermissionNode(psender.getName().getString(), permission)) {
|
||||
if ((ph != null) && (psender != null) && ph.hasPermissionNode(psender.getName().getString(), permission)) {
|
||||
return true;
|
||||
}
|
||||
return permissions.hasPermissionNode(psender, permission);
|
||||
|
Loading…
Reference in New Issue
Block a user