mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-27 21:15:57 +01:00
Use per-world permissions if supported.
This commit is contained in:
parent
5a42980d78
commit
fb535e620c
@ -340,7 +340,8 @@ public boolean hasPermission(CommandSender sender, String perm) {
|
||||
|
||||
// Invoke the permissions resolver
|
||||
if (sender instanceof Player) {
|
||||
return perms.hasPermission(((Player) sender).getName(), perm);
|
||||
Player player = (Player) sender;
|
||||
return perms.hasPermission(player.getWorld().getName(), player.getName(), perm);
|
||||
}
|
||||
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user