This commit is contained in:
Luca 2021-11-22 16:58:39 +01:00
commit 30ca71cd06

View File

@ -36,6 +36,8 @@ public class PlayerKillListener implements Listener {
playerData.setPlayerState(PlayerState.RESPAWNING);
if (killer != null) {
PlayerData killerData = this.plugin.getPlayerDataManager().getPlayerData(killer.getUniqueId());
killerData.addRandomXp(player);
game.broadcast(playerData.getPlayerTeam().getChatColor() + player.getName() + " &ewas killed by " + killerData.getPlayerTeam().getChatColor() + killer.getName() + "&e!");
} else {
game.broadcast(playerData.getPlayerTeam().getChatColor() + player.getName() + " &efell into the void!");