SteamWar/BauSystem
Archiviert
13
0

Fix TabCompleteException

Dieser Commit ist enthalten in:
jojo 2020-11-17 16:35:32 +01:00
Ursprung 7bfabf2ddc
Commit c9d2a7fddc
2 geänderte Dateien mit 2 neuen und 10 gelöschten Zeilen

Datei anzeigen

@ -29,11 +29,7 @@ import java.util.List;
public class WECommandFlopyp extends WECommand {
public List<String> onTabComplete(CommandSender sender, Command command, String s, String[] args) {
List<String> tabCompletes = Arrays.asList("-a", "-b", "-e", "-n", "-o", "-s", "-m");
if (args.length == 0) {
return tabCompletes;
}
return manageList(tabCompletes, args, args.length - 1);
return Arrays.asList("-a", "-b", "-e", "-n", "-o", "-s", "-m");
}
@Override

Datei anzeigen

@ -29,11 +29,7 @@ import java.util.List;
public class WECommandPaste extends WECommand {
public List<String> onTabComplete(CommandSender sender, Command command, String s, String[] args) {
List<String> tabCompletes = Arrays.asList("-a", "-b", "-e", "-n", "-o", "-s", "-m");
if (args.length == 0) {
return tabCompletes;
}
return manageList(tabCompletes, args, args.length - 1);
return Arrays.asList("-a", "-b", "-e", "-n", "-o", "-s", "-m");
}
@Override