Archiviert
1
0
Dieser Commit ist enthalten in:
yoyosource 2023-02-17 14:57:23 +01:00
Ursprung 7611abe4dc
Commit f524cb61dc

Datei anzeigen

@ -654,22 +654,4 @@ public class TeamCommand extends SWCommand {
} }
return false; return false;
} }
// @Override
public Iterable<String> onTabComplete(CommandSender commandSender, String[] args){
List<String> tab = new ArrayList<>();
if(args.length == 2){
if(args[1].equalsIgnoreCase("event")){
List<Event> coming = Event.getComing();
coming.forEach(event -> tab.add(event.getEventName()));
}else if(args[1].equalsIgnoreCase("join") || args[1].equalsIgnoreCase("info") || args[1].equalsIgnoreCase("tp")){
List<Team> teams = Team.getAll();
teams.forEach(team -> {
tab.add(team.getTeamName());
tab.add(team.getTeamKuerzel());
});
}
}
return tab;
}
} }