mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-07 19:20:33 +01:00
Op always has permission
This commit is contained in:
parent
69b562a5bf
commit
b01e0c8cdc
@ -374,8 +374,8 @@ public class DynmapPlugin extends JavaPlugin {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
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!");
|
||||||
|
Loading…
Reference in New Issue
Block a user