24 lines
726 B
Java
24 lines
726 B
Java
|
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;
|
||
|
|
||
|
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;
|
||
|
}
|
||
|
|
||
|
}
|