SteamWar/BungeeCore
Archiviert
13
2

Fix PR Stuff
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
yoyosource 2024-08-04 13:52:45 +02:00
Ursprung dcb106f0aa
Commit f4b5be22ac
2 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -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();

Datei anzeigen

@ -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()));
} }