Pass Player objects during WEPIF permission checks

This commit is contained in:
zml 2015-01-10 16:14:17 -08:00
parent 01276dfc62
commit 6e02f80f6c
No known key found for this signature in database
GPG Key ID: 75EFC1F079F6665E

View File

@ -462,7 +462,7 @@ public boolean hasPermission(CommandSender sender, String perm) {
// Invoke the permissions resolver
if (sender instanceof Player) {
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;