diff --git a/src/de/craftinc/gates/controllers/PermissionController.java b/src/de/craftinc/gates/controllers/PermissionController.java index ccbe58e..872169b 100644 --- a/src/de/craftinc/gates/controllers/PermissionController.java +++ b/src/de/craftinc/gates/controllers/PermissionController.java @@ -23,6 +23,10 @@ public class PermissionController { assert(sender != null); assert(permission != null); + if (gate == null) { + return hasPermission(sender, permission); + } + final Location location = gate.getLocation(); final Location exit = gate.getExit();