Update RespawnRunnable.java

This commit is contained in:
Luca 2021-11-22 17:28:56 +01:00
parent 3a8dfaebdf
commit ededa6d1bf

View File

@ -48,6 +48,7 @@ public class RespawnRunnable extends BukkitRunnable {
for (ItemStack stack : this.plugin.getGameManager().getGameItems()) {
this.player.getInventory().addItem(stack);
}
this.player.getInventory().setArmorContents(this.plugin.getGameManager().getGameArmor(playerData));
this.game.getTeams().forEach(team -> team.playingPlayers().filter(player1 -> !this.player.equals(player1))
.forEach(matchplayer -> matchplayer.sendMessage(CC.translate(this.gameTeam.getPlayerTeam().getChatColor() + this.player.getName() + " &ehas respawned!"))));