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,12 +429,13 @@ 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
return result; return result;