2021-02-16 21:58:31 +01:00
|
|
|
package net.knarcraft.stargate.command;
|
|
|
|
|
|
|
|
import org.bukkit.command.Command;
|
|
|
|
import org.bukkit.command.CommandSender;
|
|
|
|
import org.bukkit.command.TabCompleter;
|
|
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.List;
|
|
|
|
|
2021-02-19 12:07:34 +01:00
|
|
|
/**
|
|
|
|
* This is the tab completer for the /stargate (/sg) command
|
|
|
|
*/
|
2021-02-16 21:58:31 +01:00
|
|
|
public class StarGateTabCompleter implements TabCompleter {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public @Nullable List<String> onTabComplete(@NotNull CommandSender commandSender, @NotNull Command command,
|
|
|
|
@NotNull String s, @NotNull String[] strings) {
|
|
|
|
List<String> commands = new ArrayList<>();
|
|
|
|
commands.add("about");
|
|
|
|
commands.add("reload");
|
|
|
|
return commands;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|