From 5e107cccb9d328971fa27942c96b316f71101b33 Mon Sep 17 00:00:00 2001 From: zeeZ Date: Mon, 16 May 2011 20:28:18 +0800 Subject: [PATCH] Op always has permission --- src/main/java/org/dynmap/DynmapPlugin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/dynmap/DynmapPlugin.java b/src/main/java/org/dynmap/DynmapPlugin.java index c9f731b1..51631af8 100644 --- a/src/main/java/org/dynmap/DynmapPlugin.java +++ b/src/main/java/org/dynmap/DynmapPlugin.java @@ -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!");