Add all passed groups when adding new permission groups (fixes bug in unused code)

This commit is contained in:
ljacqu 2016-08-27 21:27:06 +02:00
parent e224d62b7e
commit bfcd28a9a1

View File

@ -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