From 80df86c6bf42bc13bde721dc816120e56edae9ab Mon Sep 17 00:00:00 2001 From: Trixkz Date: Mon, 22 Nov 2021 10:52:48 -0500 Subject: [PATCH] t --- .../rip/tilly/bedwars/listeners/game/PlayerKillListener.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/rip/tilly/bedwars/listeners/game/PlayerKillListener.java b/src/main/java/rip/tilly/bedwars/listeners/game/PlayerKillListener.java index fbde619..8e790e2 100644 --- a/src/main/java/rip/tilly/bedwars/listeners/game/PlayerKillListener.java +++ b/src/main/java/rip/tilly/bedwars/listeners/game/PlayerKillListener.java @@ -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!");