no reason to use a set here.

This commit is contained in:
Nick Minkler 2013-04-22 07:23:16 -07:00
parent 0b244f0b6b
commit 1cd1e63e3c

View File

@ -13,8 +13,8 @@ import org.bukkit.event.server.PluginDisableEvent;
import org.bukkit.event.server.PluginEnableEvent; import org.bukkit.event.server.PluginEnableEvent;
import org.bukkit.plugin.Plugin; import org.bukkit.plugin.Plugin;
import java.util.HashSet; import java.util.ArrayList;
import java.util.Set; import java.util.List;
public class Permission_Privileges extends Permission { public class Permission_Privileges extends Permission {
@ -148,7 +148,7 @@ public class Permission_Privileges extends Permission {
@Override @Override
public String[] getGroups() { public String[] getGroups() {
Set<String> groups = new HashSet<String>(); List<String> groups = new ArrayList<String>();
for (Group g : privs.getGroupManager().getGroups()) { for (Group g : privs.getGroupManager().getGroups()) {
groups.add(g.getName()); groups.add(g.getName());
} }