Dieser Commit ist enthalten in:
Ursprung
dcb106f0aa
Commit
f4b5be22ac
@ -145,7 +145,7 @@ public class EventCommand extends SWCommand {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ClassMapper(Team.class)
|
@ClassMapper(value = Team.class, local = true)
|
||||||
public TypeMapper<Team> eventTeams() {
|
public TypeMapper<Team> eventTeams() {
|
||||||
return eventTeam(eventFight -> {
|
return eventTeam(eventFight -> {
|
||||||
if (eventFight.getStartTime().after(new Timestamp(System.currentTimeMillis()))) return Collections.emptyList();
|
if (eventFight.getStartTime().after(new Timestamp(System.currentTimeMillis()))) return Collections.emptyList();
|
||||||
|
@ -65,12 +65,12 @@ public class EventRescheduleCommand extends SWCommand {
|
|||||||
sender.system("EVENTRESCHEDULE_NO_FIGHT");
|
sender.system("EVENTRESCHEDULE_NO_FIGHT");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Mapper("BLUE_TEAM")
|
@Mapper(value = "BLUE_TEAM", local = true)
|
||||||
public TypeMapper<Team> eventBlueTeams() {
|
public TypeMapper<Team> eventBlueTeams() {
|
||||||
return EventCommand.eventTeam(eventFight -> List.of(eventFight.getTeamBlue()));
|
return EventCommand.eventTeam(eventFight -> List.of(eventFight.getTeamBlue()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Mapper("RED_TEAM")
|
@Mapper(value = "RED_TEAM", local = true)
|
||||||
public TypeMapper<Team> eventRedTeams() {
|
public TypeMapper<Team> eventRedTeams() {
|
||||||
return EventCommand.eventTeam(eventFight -> List.of(eventFight.getTeamRed()));
|
return EventCommand.eventTeam(eventFight -> List.of(eventFight.getTeamRed()));
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren