summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2011-10-04 06:55:42 +0100
committerKHobbits <rob@khobbits.co.uk>2011-10-04 06:55:42 +0100
commitc97e69cd71afe34812fcbbe6af33ce92eff1218f (patch)
tree3ab68b3bd426499098ab3304976b4b5f30d4fc1d
parent7a27be54f83ccd5646072a38ec7c86839cb33e17 (diff)
downloadEssentials-c97e69cd71afe34812fcbbe6af33ce92eff1218f.tar
Essentials-c97e69cd71afe34812fcbbe6af33ce92eff1218f.tar.gz
Essentials-c97e69cd71afe34812fcbbe6af33ce92eff1218f.tar.lz
Essentials-c97e69cd71afe34812fcbbe6af33ce92eff1218f.tar.xz
Essentials-c97e69cd71afe34812fcbbe6af33ce92eff1218f.zip
Removing a few restrictions on manuadd, it shouldnt be a clone of manpromote after all.
-rw-r--r--EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java10
1 files changed, 1 insertions, 9 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java
index a13406eab..0fe8a15d4 100644
--- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java
+++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java
@@ -365,15 +365,7 @@ public class GroupManager extends JavaPlugin {
sender.sendMessage(ChatColor.RED + "Can't modify player involving a group that you don't inherit.");
return false;
}
- if (!isConsole && !isOpOverride && (!permissionHandler.hasGroupInInheritance(auxUser.getGroup(), auxGroup.getName()) && !permissionHandler.hasGroupInInheritance(auxGroup, auxUser.getGroupName()))) {
- sender.sendMessage(ChatColor.RED + "Can't modify player using groups with different heritage line.");
- return false;
- }
- if (!isConsole && !isOpOverride && (!permissionHandler.hasGroupInInheritance(auxGroup, auxUser.getGroupName()))) {
- sender.sendMessage(ChatColor.RED + "The new group must be a higher rank.");
- return false;
- }
-
+
//PARECE OK
auxUser.setGroup(auxGroup);
sender.sendMessage(ChatColor.YELLOW + "You changed player '" + auxUser.getName() + "' group to '" + auxGroup.getName() + "'.");