mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-08-20 18:32:49 +00:00
Removing a few restrictions on manuadd, it shouldnt be a clone of manpromote after all.
This commit is contained in:
parent
9f4d79a756
commit
0aa9f79629
|
@ -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.");
|
sender.sendMessage(ChatColor.RED + "Can't modify player involving a group that you don't inherit.");
|
||||||
return false;
|
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
|
//PARECE OK
|
||||||
auxUser.setGroup(auxGroup);
|
auxUser.setGroup(auxGroup);
|
||||||
sender.sendMessage(ChatColor.YELLOW + "You changed player '" + auxUser.getName() + "' group to '" + auxGroup.getName() + "'.");
|
sender.sendMessage(ChatColor.YELLOW + "You changed player '" + auxUser.getName() + "' group to '" + auxGroup.getName() + "'.");
|
||||||
|
|
Loading…
Reference in a new issue