mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-21 16:19:13 +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;
|
||||
for (int i = 1; i < groupNames.size(); i++) {
|
||||
// Get the group name
|
||||
String groupName = groupNames.get(0);
|
||||
String groupName = groupNames.get(i);
|
||||
|
||||
// Add this group
|
||||
if (!addGroup(player, groupName))
|
||||
if (!addGroup(player, groupName)) {
|
||||
result = false;
|
||||
}
|
||||
}
|
||||
|
||||
// Return the result
|
||||
|
Loading…
Reference in New Issue
Block a user