summaryrefslogtreecommitdiffstats
path: root/EssentialsGroupManager/src/org/anjocaido/groupmanager
diff options
context:
space:
mode:
authorElgarL <ElgarL@palmergames.com>2011-10-11 00:34:17 +0100
committerElgarL <ElgarL@palmergames.com>2011-10-11 00:34:17 +0100
commit9129386f1279adf8dd650bdc474511bc3aa7eb4a (patch)
tree1cb68f4e1c134fcb8b878e7d7dcc911c3751188a /EssentialsGroupManager/src/org/anjocaido/groupmanager
parent9f529311914f06ed4f2bc79debb8869d630223fa (diff)
downloadEssentials-9129386f1279adf8dd650bdc474511bc3aa7eb4a.tar
Essentials-9129386f1279adf8dd650bdc474511bc3aa7eb4a.tar.gz
Essentials-9129386f1279adf8dd650bdc474511bc3aa7eb4a.tar.lz
Essentials-9129386f1279adf8dd650bdc474511bc3aa7eb4a.tar.xz
Essentials-9129386f1279adf8dd650bdc474511bc3aa7eb4a.zip
Fixed manudelsub not correctly selecting the group to remove.
Diffstat (limited to 'EssentialsGroupManager/src/org/anjocaido/groupmanager')
-rw-r--r--EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java
index 0fe8a15d4..34534aa5f 100644
--- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java
+++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java
@@ -478,6 +478,12 @@ public class GroupManager extends JavaPlugin {
} else {
auxUser = dataHolder.getUser(args[0]);
}
+ auxGroup = dataHolder.getGroup(args[1]);
+ if (auxGroup == null) {
+ sender.sendMessage(ChatColor.RED + "Group not found!");
+ return false;
+ }
+
//VALIDANDO PERMISSAO
if (!isConsole && !isOpOverride && (senderGroup != null ? permissionHandler.inGroup(auxUser.getName(), senderGroup.getName()) : false)) {
sender.sendMessage(ChatColor.RED + "Can't modify player with same permissions than you, or higher.");