SteamWar/BungeeCore
Archiviert
13
2

Fix FightEndsHandler

Dieser Commit ist enthalten in:
yoyosource 2022-04-01 12:23:08 +02:00
Ursprung 895ac9843b
Commit a26e3994a3

Datei anzeigen

@ -104,7 +104,7 @@ public class FightEndsHandler implements SpigotHandler {
return false; return false;
} }
for (Fight fight : fightsPage) { for (Fight fight : fightsPage) {
if (!fight.getGameMode().getSchemType().equals(gameMode)) continue; if (!gameMode.equals(fight.getGameMode().getSchemType())) continue;
if (fight.getStartTime().getTime() < time) return false; if (fight.getStartTime().getTime() < time) return false;
if (fight.getBluePlayers().stream().map(FightPlayer::getUserID).collect(Collectors.toList()).containsAll(bluePlayers)) { if (fight.getBluePlayers().stream().map(FightPlayer::getUserID).collect(Collectors.toList()).containsAll(bluePlayers)) {
if (fight.getRedPlayers().stream().map(FightPlayer::getUserID).collect(Collectors.toList()).containsAll(redPlayers)) { if (fight.getRedPlayers().stream().map(FightPlayer::getUserID).collect(Collectors.toList()).containsAll(redPlayers)) {