1
0
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:
ElgarL
2011-10-31 20:20:57 +00:00
parent 9734274ed1
commit 1fd02b8a4a
3 changed files with 30 additions and 25 deletions

View File

@@ -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!");