default .has method with player objects will always checks builtin perm

system instead of trying to hook through the permission specific API
This commit is contained in:
sleak 2011-12-12 21:24:24 -08:00
parent e18782930f
commit 61f1a93791
2 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ public abstract class Permission {
* @return Success or Failure
*/
public boolean has(Player player, String permission) {
return playerHas(player.getWorld().getName(), player.getName(), permission);
return player.hasPermission(permission);
}
/**

View File

@ -76,7 +76,7 @@ public class Permission_bPermissions extends Permission {
public boolean isEnabled() {
return this.perms != null;
}
@Override
public boolean playerHas(String world, String player, String permission) {
if (world == null)