summaryrefslogtreecommitdiffstats
path: root/EssentialsGroupManager/src/org
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
commit5ad8f0ee8eb4e6b5c753de2ee4bba4f82511e57c (patch)
treee8f9600a1996a0481754f7ada8804ee1e468ae6a /EssentialsGroupManager/src/org
parentdd436fa121f99fd3de801cd31b5f15faea436e4a (diff)
downloadEssentials-5ad8f0ee8eb4e6b5c753de2ee4bba4f82511e57c.tar
Essentials-5ad8f0ee8eb4e6b5c753de2ee4bba4f82511e57c.tar.gz
Essentials-5ad8f0ee8eb4e6b5c753de2ee4bba4f82511e57c.tar.lz
Essentials-5ad8f0ee8eb4e6b5c753de2ee4bba4f82511e57c.tar.xz
Essentials-5ad8f0ee8eb4e6b5c753de2ee4bba4f82511e57c.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')
-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())) {