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:
parent
fd9afd5a55
commit
8aafd9f903
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user