mirror of https://github.com/MilkBowl/Vault.git
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:
parent
e18782930f
commit
61f1a93791
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue