t
This commit is contained in:
parent
379788b7c3
commit
80df86c6bf
@ -36,6 +36,8 @@ public class PlayerKillListener implements Listener {
|
|||||||
playerData.setPlayerState(PlayerState.RESPAWNING);
|
playerData.setPlayerState(PlayerState.RESPAWNING);
|
||||||
if (killer != null) {
|
if (killer != null) {
|
||||||
PlayerData killerData = this.plugin.getPlayerDataManager().getPlayerData(killer.getUniqueId());
|
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!");
|
game.broadcast(playerData.getPlayerTeam().getChatColor() + player.getName() + " &ewas killed by " + killerData.getPlayerTeam().getChatColor() + killer.getName() + "&e!");
|
||||||
} else {
|
} else {
|
||||||
game.broadcast(playerData.getPlayerTeam().getChatColor() + player.getName() + " &efell into the void!");
|
game.broadcast(playerData.getPlayerTeam().getChatColor() + player.getName() + " &efell into the void!");
|
||||||
|
Loading…
Reference in New Issue
Block a user