Allow both essentials.build and permissions.build in PermissionsBukkit

This commit is contained in:
snowleo 2011-09-29 01:10:54 +02:00
parent ee00fb77d0
commit d2c553652f
2 changed files with 7 additions and 1 deletions

View File

@ -55,7 +55,7 @@ public class BPermissionsHandler implements IPermissionsHandler
@Override @Override
public boolean canBuild(final Player base, final String group) public boolean canBuild(final Player base, final String group)
{ {
return hasPermission(base, "bPermissions.build"); return hasPermission(base, "essentials.build") || hasPermission(base, "bPermissions.build");
} }
@Override @Override

View File

@ -74,4 +74,10 @@ public class PermissionsBukkitHandler extends SuperpermsHandler
} }
return false; return false;
} }
@Override
public boolean canBuild(Player base, String group)
{
return base.hasPermission("essentials.build") || base.hasPermission("permissions.build");
}
} }