Use per-world permissions if supported.

This commit is contained in:
Wizjany 2011-09-26 01:32:48 -04:00
parent 5a42980d78
commit fb535e620c

View File

@ -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;