mirror of
https://github.com/essentials/Essentials.git
synced 2025-09-29 23:59:06 +02:00
Expanded 'canUserBuild()' to include inheritance and subgroups.
This commit is contained in:
@@ -1183,6 +1183,7 @@ public class GroupManager extends JavaPlugin {
|
||||
if (!auxUser.isSubGroupsEmpty() && auxGroup2 == null)
|
||||
for (Group subGroup : auxUser.subGroupListCopy()) {
|
||||
auxGroup2 = permissionHandler.nextGroupWithVariable(subGroup, args[1]);
|
||||
if (auxGroup2 != null) continue;
|
||||
}
|
||||
if (auxGroup2 == null) {
|
||||
sender.sendMessage(ChatColor.RED + "The user doesn't have access to that variable!");
|
||||
|
Reference in New Issue
Block a user