mirror of
https://github.com/essentials/Essentials.git
synced 2025-09-30 08:09:03 +02:00
Fixed manudelsub not correctly selecting the group to remove.
This commit is contained in:
@@ -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.");
|
||||
|
Reference in New Issue
Block a user