summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2011-09-29 01:10:54 +0200
committersnowleo <schneeleo@gmail.com>2011-09-29 01:10:54 +0200
commitd2c553652f0f7764fdc326aa68f0c36e4554ac04 (patch)
treeba1f5e3b871715859f0998efebfe85a181769292
parentee00fb77d0569aba9b3e666df3f178f2ddd8e196 (diff)
downloadEssentials-d2c553652f0f7764fdc326aa68f0c36e4554ac04.tar
Essentials-d2c553652f0f7764fdc326aa68f0c36e4554ac04.tar.gz
Essentials-d2c553652f0f7764fdc326aa68f0c36e4554ac04.tar.lz
Essentials-d2c553652f0f7764fdc326aa68f0c36e4554ac04.tar.xz
Essentials-d2c553652f0f7764fdc326aa68f0c36e4554ac04.zip
Allow both essentials.build and permissions.build in PermissionsBukkit
-rw-r--r--Essentials/src/com/earth2me/essentials/perm/BPermissionsHandler.java2
-rw-r--r--Essentials/src/com/earth2me/essentials/perm/PermissionsBukkitHandler.java6
2 files changed, 7 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/perm/BPermissionsHandler.java b/Essentials/src/com/earth2me/essentials/perm/BPermissionsHandler.java
index 6914c2816..b30a7c0c7 100644
--- a/Essentials/src/com/earth2me/essentials/perm/BPermissionsHandler.java
+++ b/Essentials/src/com/earth2me/essentials/perm/BPermissionsHandler.java
@@ -55,7 +55,7 @@ public class BPermissionsHandler implements IPermissionsHandler
@Override
public boolean canBuild(final Player base, final String group)
{
- return hasPermission(base, "bPermissions.build");
+ return hasPermission(base, "essentials.build") || hasPermission(base, "bPermissions.build");
}
@Override
diff --git a/Essentials/src/com/earth2me/essentials/perm/PermissionsBukkitHandler.java b/Essentials/src/com/earth2me/essentials/perm/PermissionsBukkitHandler.java
index d47c3c8a4..b3cc62979 100644
--- a/Essentials/src/com/earth2me/essentials/perm/PermissionsBukkitHandler.java
+++ b/Essentials/src/com/earth2me/essentials/perm/PermissionsBukkitHandler.java
@@ -74,4 +74,10 @@ public class PermissionsBukkitHandler extends SuperpermsHandler
}
return false;
}
+
+ @Override
+ public boolean canBuild(Player base, String group)
+ {
+ return base.hasPermission("essentials.build") || base.hasPermission("permissions.build");
+ }
}