1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-12-01 15:03:36 +01:00

Fix for tabcomplete

This commit is contained in:
Zrips 2019-02-19 19:14:06 +02:00
parent fd9afd5a55
commit 8aafd9f903

View File

@ -22,13 +22,14 @@ import com.gamingmesh.jobs.container.JobProgression;
import com.gamingmesh.jobs.container.JobsPlayer;
public class TabComplete implements TabCompleter {
public TabComplete() {
Debug.D("created tab complete");
}
@Override
public List<String> onTabComplete(CommandSender sender, Command command, String label, String[] args) {
List<String> completionList = new ArrayList<>();
if (!args[0].equalsIgnoreCase("jobs"))
return Collections.emptyList();
List<String> completionList = new ArrayList<>();
if (args.length == 1) {
String PartOfCommand = args[0];