geforkt von SteamWar/BungeeCore
Update stuff
Dieser Commit ist enthalten in:
Ursprung
77efb4a97f
Commit
c2219dec4e
@ -128,12 +128,17 @@ public class FightEndsHandler implements SpigotHandler {
|
|||||||
for (Fight fight : fightsPage) {
|
for (Fight fight : fightsPage) {
|
||||||
if (!gameMode.equals(fight.getGameMode().getSchemType())) 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()
|
||||||
if (fight.getRedPlayers().stream().map(FightPlayer::getUserID).collect(Collectors.toList()).containsAll(redPlayers)) {
|
.map(FightPlayer::getUserID)
|
||||||
|
.collect(Collectors.toList())
|
||||||
|
.containsAll(bluePlayers)
|
||||||
|
&& fight.getRedPlayers().stream()
|
||||||
|
.map(FightPlayer::getUserID)
|
||||||
|
.collect(Collectors.toList())
|
||||||
|
.containsAll(redPlayers)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
page++;
|
page++;
|
||||||
} while (true);
|
} while (true);
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren