summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Essentials/src/com/earth2me/essentials/Permissions2Handler.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/Permissions2Handler.java b/Essentials/src/com/earth2me/essentials/Permissions2Handler.java
index 23353c643..71d7da58b 100644
--- a/Essentials/src/com/earth2me/essentials/Permissions2Handler.java
+++ b/Essentials/src/com/earth2me/essentials/Permissions2Handler.java
@@ -17,7 +17,8 @@ public class Permissions2Handler implements IPermissionsHandler
public String getGroup(final Player base)
{
- return permissionHandler.getGroup(base.getWorld().getName(), base.getName());
+ final String group = permissionHandler.getGroup(base.getWorld().getName(), base.getName());
+ return group == null ? "default" : group;
}
public boolean canBuild(final Player base, final String group)