Op always has permission

This commit is contained in:
zeeZ 2011-05-16 14:28:18 +02:00
parent 69b562a5bf
commit b01e0c8cdc

View File

@ -374,8 +374,8 @@ public class DynmapPlugin extends JavaPlugin {
return false;
}
private boolean checkPlayerPermission(CommandSender sender, String permission) {
if (!(sender instanceof Player)) {
private boolean checkPlayerPermission(CommandSender sender, String permission) {
if (!(sender instanceof Player) || sender.isOp()) {
return true;
} else if (!permissions.has(sender, permission.toLowerCase())) {
sender.sendMessage("You don't have permission to use this command!");