mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-24 03:05:28 +01:00
Fix exception in fabric with default permission handlers
This commit is contained in:
parent
a5bbe6bdd4
commit
61440490f3
@ -330,7 +330,7 @@ public class DynmapPlugin {
|
|||||||
|
|
||||||
boolean hasPerm(PlayerEntity psender, String permission) {
|
boolean hasPerm(PlayerEntity psender, String permission) {
|
||||||
PermissionsHandler ph = PermissionsHandler.getHandler();
|
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 true;
|
||||||
}
|
}
|
||||||
return permissions.has(psender, permission);
|
return permissions.has(psender, permission);
|
||||||
@ -338,7 +338,7 @@ public class DynmapPlugin {
|
|||||||
|
|
||||||
boolean hasPermNode(PlayerEntity psender, String permission) {
|
boolean hasPermNode(PlayerEntity psender, String permission) {
|
||||||
PermissionsHandler ph = PermissionsHandler.getHandler();
|
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 true;
|
||||||
}
|
}
|
||||||
return permissions.hasPermissionNode(psender, permission);
|
return permissions.hasPermissionNode(psender, permission);
|
||||||
|
@ -330,7 +330,7 @@ public class DynmapPlugin {
|
|||||||
|
|
||||||
boolean hasPerm(PlayerEntity psender, String permission) {
|
boolean hasPerm(PlayerEntity psender, String permission) {
|
||||||
PermissionsHandler ph = PermissionsHandler.getHandler();
|
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 true;
|
||||||
}
|
}
|
||||||
return permissions.has(psender, permission);
|
return permissions.has(psender, permission);
|
||||||
@ -338,7 +338,7 @@ public class DynmapPlugin {
|
|||||||
|
|
||||||
boolean hasPermNode(PlayerEntity psender, String permission) {
|
boolean hasPermNode(PlayerEntity psender, String permission) {
|
||||||
PermissionsHandler ph = PermissionsHandler.getHandler();
|
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 true;
|
||||||
}
|
}
|
||||||
return permissions.hasPermissionNode(psender, permission);
|
return permissions.hasPermissionNode(psender, permission);
|
||||||
|
@ -315,7 +315,7 @@ public class DynmapPlugin {
|
|||||||
|
|
||||||
boolean hasPerm(PlayerEntity psender, String permission) {
|
boolean hasPerm(PlayerEntity psender, String permission) {
|
||||||
PermissionsHandler ph = PermissionsHandler.getHandler();
|
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 true;
|
||||||
}
|
}
|
||||||
return permissions.has(psender, permission);
|
return permissions.has(psender, permission);
|
||||||
@ -323,7 +323,7 @@ public class DynmapPlugin {
|
|||||||
|
|
||||||
boolean hasPermNode(PlayerEntity psender, String permission) {
|
boolean hasPermNode(PlayerEntity psender, String permission) {
|
||||||
PermissionsHandler ph = PermissionsHandler.getHandler();
|
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 true;
|
||||||
}
|
}
|
||||||
return permissions.hasPermissionNode(psender, permission);
|
return permissions.hasPermissionNode(psender, permission);
|
||||||
|
@ -316,7 +316,7 @@ public class DynmapPlugin {
|
|||||||
|
|
||||||
boolean hasPerm(PlayerEntity psender, String permission) {
|
boolean hasPerm(PlayerEntity psender, String permission) {
|
||||||
PermissionsHandler ph = PermissionsHandler.getHandler();
|
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 true;
|
||||||
}
|
}
|
||||||
return permissions.has(psender, permission);
|
return permissions.has(psender, permission);
|
||||||
@ -324,7 +324,7 @@ public class DynmapPlugin {
|
|||||||
|
|
||||||
boolean hasPermNode(PlayerEntity psender, String permission) {
|
boolean hasPermNode(PlayerEntity psender, String permission) {
|
||||||
PermissionsHandler ph = PermissionsHandler.getHandler();
|
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 true;
|
||||||
}
|
}
|
||||||
return permissions.hasPermissionNode(psender, permission);
|
return permissions.hasPermissionNode(psender, permission);
|
||||||
|
Loading…
Reference in New Issue
Block a user