mirror of
https://github.com/Xiao-MoMi/Custom-Fishing.git
synced 2025-12-30 04:19:30 +00:00
1.0
This commit is contained in:
@@ -20,7 +20,7 @@ public class TabComplete implements TabCompleter {
|
||||
return null;
|
||||
}
|
||||
if (args.length == 1){
|
||||
return Arrays.asList("reload","items","export");
|
||||
return Arrays.asList("competition","reload","items","export");
|
||||
}
|
||||
if (args.length == 2){
|
||||
if (args[0].equalsIgnoreCase("items")){
|
||||
@@ -29,6 +29,9 @@ public class TabComplete implements TabCompleter {
|
||||
if (args[0].equalsIgnoreCase("export")){
|
||||
return List.of("FileName");
|
||||
}
|
||||
if (args[0].equalsIgnoreCase("competition")){
|
||||
return List.of("start","end","cancel");
|
||||
}
|
||||
}
|
||||
if (args.length == 3){
|
||||
if (args[0].equalsIgnoreCase("items")){
|
||||
@@ -36,6 +39,11 @@ public class TabComplete implements TabCompleter {
|
||||
return Arrays.asList("get","give");
|
||||
}
|
||||
}
|
||||
if (args[0].equalsIgnoreCase("competition")){
|
||||
if (args[1].equalsIgnoreCase("start")){
|
||||
return competitions();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (args.length == 4){
|
||||
if (args[0].equalsIgnoreCase("items")){
|
||||
@@ -113,4 +121,7 @@ public class TabComplete implements TabCompleter {
|
||||
private List<String> baits() {
|
||||
return new ArrayList<>(ConfigReader.BAIT.keySet());
|
||||
}
|
||||
private List<String> competitions() {
|
||||
return new ArrayList<>(ConfigReader.CompetitionsCommand.keySet());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user