This commit is contained in:
Luca
2021-11-22 19:02:40 +01:00
parent 91c766ddce
commit 5732128d14
20 changed files with 1071 additions and 32 deletions

View File

@ -113,6 +113,10 @@ public class GameManager {
}, 100L).getTaskId());
}
public Game getSpectatingGame(UUID uuid) {
return this.games.get(this.spectators.get(uuid));
}
public void removePlayerFromGame(Player player, PlayerData playerData, boolean spectatorDeath) {
Game game = this.games.get(playerData.getCurrentGameId());
Player killer = playerData.getLastDamager();