mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-09-12 05:08:48 +00:00
Fixed manudelsub not correctly selecting the group to remove.
This commit is contained in:
parent
9f52931191
commit
9129386f12
|
@ -36,3 +36,4 @@ v 1.2:
|
||||||
- Added the ability to handle unknown worlds at server start.
|
- Added the ability to handle unknown worlds at server start.
|
||||||
(GM will create the data files for any worlds it finds which are not in the config.yml)
|
(GM will create the data files for any worlds it finds which are not in the config.yml)
|
||||||
- Fix for Bukkit passing a null To location on a player Portaling
|
- Fix for Bukkit passing a null To location on a player Portaling
|
||||||
|
- Fixed manudelsub not correctly selecting the group to remove.
|
|
@ -478,6 +478,12 @@ public class GroupManager extends JavaPlugin {
|
||||||
} else {
|
} else {
|
||||||
auxUser = dataHolder.getUser(args[0]);
|
auxUser = dataHolder.getUser(args[0]);
|
||||||
}
|
}
|
||||||
|
auxGroup = dataHolder.getGroup(args[1]);
|
||||||
|
if (auxGroup == null) {
|
||||||
|
sender.sendMessage(ChatColor.RED + "Group not found!");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
//VALIDANDO PERMISSAO
|
//VALIDANDO PERMISSAO
|
||||||
if (!isConsole && !isOpOverride && (senderGroup != null ? permissionHandler.inGroup(auxUser.getName(), senderGroup.getName()) : false)) {
|
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.");
|
sender.sendMessage(ChatColor.RED + "Can't modify player with same permissions than you, or higher.");
|
||||||
|
|
Loading…
Reference in a new issue