Op always has permission

This commit is contained in:
zeeZ 2011-05-16 20:28:18 +08:00 committed by Christian
parent 4a17f87691
commit 5e107cccb9

View File

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