package net.knarcraft.dropper.util; import net.knarcraft.dropper.Dropper; import net.knarcraft.dropper.arena.DropperArena; import org.jetbrains.annotations.NotNull; import java.util.ArrayList; import java.util.List; /** * A helper-class for common tab-completions */ public final class TabCompleteHelper { private TabCompleteHelper() { } /** * Gets the names of all current arenas * * @return

All arena names

*/ public static @NotNull List getArenas() { List arenaNames = new ArrayList<>(); for (DropperArena dropperArena : Dropper.getInstance().getArenaHandler().getArenas().values()) { arenaNames.add(dropperArena.getArenaName()); } return arenaNames; } }