mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-27 11:37:47 +01:00
Pass Player objects during WEPIF permission checks
This commit is contained in:
parent
01276dfc62
commit
6e02f80f6c
@ -462,7 +462,7 @@ public boolean hasPermission(CommandSender sender, String perm) {
|
|||||||
// Invoke the permissions resolver
|
// Invoke the permissions resolver
|
||||||
if (sender instanceof Player) {
|
if (sender instanceof Player) {
|
||||||
Player player = (Player) sender;
|
Player player = (Player) sender;
|
||||||
return PermissionsResolverManager.getInstance().hasPermission(player.getWorld().getName(), player.getName(), perm);
|
return PermissionsResolverManager.getInstance().hasPermission(player.getWorld().getName(), player, perm);
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user