summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2011-07-23 13:17:22 -0700
committersnowleo <schneeleo@gmail.com>2011-07-23 13:17:22 -0700
commit72f7e67065314a6081501928b26502268db8b259 (patch)
tree51044c8a3e31e8b928dd1e3237953ad8c985e4b3
parent4fa964b25e5020dd8365148555838ac7a4bc77aa (diff)
downloadEssentials-72f7e67065314a6081501928b26502268db8b259.tar
Essentials-72f7e67065314a6081501928b26502268db8b259.tar.gz
Essentials-72f7e67065314a6081501928b26502268db8b259.tar.lz
Essentials-72f7e67065314a6081501928b26502268db8b259.tar.xz
Essentials-72f7e67065314a6081501928b26502268db8b259.zip
SuperpermsBridge fail
-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)