Merge pull request 'Add duration to FightStatistics.disable' (#390) from DurationFieldInFightEndsPacket into master
Einige Prüfungen sind fehlgeschlagen
SteamWarCI Build failed
Einige Prüfungen sind fehlgeschlagen
SteamWarCI Build failed
Reviewed-on: #390 Reviewed-by: Lixfel <lixfel@steamwar.de>
Dieser Commit ist enthalten in:
Commit
f404dafa8d
@ -78,6 +78,7 @@ public class FightStatistics {
|
||||
FightTeam winner = FightSystem.getLastWinner();
|
||||
String windescription = FightSystem.getLastWinreason();
|
||||
String gameMode = Config.SchematicType.toDB();
|
||||
Instant endTime = Instant.now();
|
||||
|
||||
int blueLeader = getLeader(Fight.getBlueTeam());
|
||||
int redLeader = getLeader(Fight.getRedTeam());
|
||||
@ -131,7 +132,7 @@ public class FightStatistics {
|
||||
}
|
||||
|
||||
if (!Bukkit.getOnlinePlayers().isEmpty() && !unranked) {
|
||||
NetworkSender.send(new FightEndsPacket((byte) win, blueSchem == null ? 0 : blueSchem, redSchem == null ? 0 : redSchem, Fight.getBlueTeam().getPlayers().stream().map(FightPlayer::getPlayer).map(p -> SteamwarUser.get(p.getUniqueId())).map(SteamwarUser::getId).collect(Collectors.toList()), Fight.getRedTeam().getPlayers().stream().map(FightPlayer::getPlayer).map(p -> SteamwarUser.get(p.getUniqueId())).map(SteamwarUser::getId).collect(Collectors.toList()), gameMode));
|
||||
NetworkSender.send(new FightEndsPacket((byte) win, blueSchem == null ? 0 : blueSchem, redSchem == null ? 0 : redSchem, Fight.getBlueTeam().getPlayers().stream().map(FightPlayer::getPlayer).map(p -> SteamwarUser.get(p.getUniqueId())).map(SteamwarUser::getId).collect(Collectors.toList()), Fight.getRedTeam().getPlayers().stream().map(FightPlayer::getPlayer).map(p -> SteamwarUser.get(p.getUniqueId())).map(SteamwarUser::getId).collect(Collectors.toList()), gameMode, endTime.getEpochSecond() - starttime.toInstant().getEpochSecond()));
|
||||
}
|
||||
|
||||
unranked = false;
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren