summaryrefslogtreecommitdiffstats
path: root/EssentialsGroupManager/src/org/anjocaido
diff options
context:
space:
mode:
authorElgarL <ElgarL@palmergames.com>2012-04-02 21:12:19 +0100
committerElgarL <ElgarL@palmergames.com>2012-04-02 21:12:19 +0100
commite2e51c9c95f95906ad370bee7bcf698918b9a20b (patch)
tree3e5b1880a03ed3fabf7e337da2190cc5ef9aaab2 /EssentialsGroupManager/src/org/anjocaido
parent3f732725245955da9e3e2527a00a6150bec18044 (diff)
downloadEssentials-e2e51c9c95f95906ad370bee7bcf698918b9a20b.tar
Essentials-e2e51c9c95f95906ad370bee7bcf698918b9a20b.tar.gz
Essentials-e2e51c9c95f95906ad370bee7bcf698918b9a20b.tar.lz
Essentials-e2e51c9c95f95906ad370bee7bcf698918b9a20b.tar.xz
Essentials-e2e51c9c95f95906ad370bee7bcf698918b9a20b.zip
Added a new permission node 'groupmanager.op'. This will cause players
with this node to be treated as op's when using GroupManager commands (they will still require each commands permission node to use them).
Diffstat (limited to 'EssentialsGroupManager/src/org/anjocaido')
-rw-r--r--EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java
index 09ea3b247..8bd346735 100644
--- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java
+++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java
@@ -303,7 +303,7 @@ public class GroupManager extends JavaPlugin {
senderPlayer = (Player) sender;
senderUser = worldsHolder.getWorldData(senderPlayer).getUser(senderPlayer.getName());
senderGroup = senderUser.getGroup();
- isOpOverride = (isOpOverride && senderPlayer.isOp());
+ isOpOverride = (isOpOverride && (senderPlayer.isOp() || worldsHolder.getWorldPermissions(senderPlayer).has(senderPlayer, "groupmanager.op")));
System.out.println("[PLAYER_COMMAND] " + senderPlayer.getName() + ": /" + commandLabel + " " + Tasks.join(args, " "));
if (isOpOverride || worldsHolder.getWorldPermissions(senderPlayer).has(senderPlayer, "groupmanager." + cmd.getName())) {