mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-22 08:37:49 +01:00
Add all passed groups when adding new permission groups (fixes bug in unused code)
This commit is contained in:
parent
e224d62b7e
commit
bfcd28a9a1
@ -429,11 +429,12 @@ public class PermissionsManager implements Reloadable {
|
|||||||
boolean result = true;
|
boolean result = true;
|
||||||
for (int i = 1; i < groupNames.size(); i++) {
|
for (int i = 1; i < groupNames.size(); i++) {
|
||||||
// Get the group name
|
// Get the group name
|
||||||
String groupName = groupNames.get(0);
|
String groupName = groupNames.get(i);
|
||||||
|
|
||||||
// Add this group
|
// Add this group
|
||||||
if (!addGroup(player, groupName))
|
if (!addGroup(player, groupName)) {
|
||||||
result = false;
|
result = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Return the result
|
// Return the result
|
||||||
|
Loading…
Reference in New Issue
Block a user