geforkt von SteamWar/BungeeCore
Fix TeamCommand
Dieser Commit ist enthalten in:
Ursprung
36e303cd44
Commit
9d69d13541
@ -48,7 +48,6 @@ public class TeamCommand extends BasicDiscordCommand {
|
||||
if (steamwarUser == null) {
|
||||
return;
|
||||
}
|
||||
System.out.println(event.getName() + " " + event.getSubcommandName() + " " + event.getOptions());
|
||||
|
||||
if (event.getSubcommandName() != null) {
|
||||
switch (event.getSubcommandName()) {
|
||||
@ -76,8 +75,10 @@ public class TeamCommand extends BasicDiscordCommand {
|
||||
embedBuilder.addField("Leader", team.getMembers().stream().map(SteamwarUser::get).filter(SteamwarUser::isLeader).map(SteamwarUser::getUserName).collect(Collectors.joining(" ")), true);
|
||||
embedBuilder.addField("Member", team.getMembers().stream().map(SteamwarUser::get).filter(user -> !user.isLeader()).map(SteamwarUser::getUserName).collect(Collectors.joining(" ")), true);
|
||||
embedBuilder.addField("Events", TeamTeilnahme.getEvents(team.getTeamId()).stream().map(Event::getEventName).collect(Collectors.joining(" ")), true);
|
||||
event.replyEmbeds(embedBuilder.build()).setEphemeral(true).complete();
|
||||
return;
|
||||
default:
|
||||
event.reply("Unbekannter Befehl").setEphemeral(true).complete();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren