From e1eb5b606a6a3f917c59b30d21e4e35b9c72990a Mon Sep 17 00:00:00 2001 From: Lixfel Date: Fri, 20 Sep 2019 17:57:14 +0200 Subject: [PATCH] Fixing death messages --- src/de/steamwar/fightsystem/listener/PlayerDeathListener.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/de/steamwar/fightsystem/listener/PlayerDeathListener.java b/src/de/steamwar/fightsystem/listener/PlayerDeathListener.java index b39a2f3..3146ccf 100644 --- a/src/de/steamwar/fightsystem/listener/PlayerDeathListener.java +++ b/src/de/steamwar/fightsystem/listener/PlayerDeathListener.java @@ -3,6 +3,7 @@ package de.steamwar.fightsystem.listener; import de.steamwar.fightsystem.FightSystem; import de.steamwar.fightsystem.fight.Fight; import de.steamwar.fightsystem.fight.FightTeam; +import org.bukkit.Bukkit; import org.bukkit.GameMode; import org.bukkit.Sound; import org.bukkit.entity.Player; @@ -20,7 +21,7 @@ public class PlayerDeathListener extends BasicListener { if(fightTeam == null) return; - event.setDeathMessage(FightSystem.PREFIX + "§cDer Spieler " + fightTeam.getPrefix() + player.getName() + " §cist gestorben!"); + Bukkit.broadcastMessage(FightSystem.PREFIX + "§cDer Spieler " + fightTeam.getPrefix() + player.getName() + " §cist gestorben!"); fightTeam.getFightPlayer(player).setOut(); player.setGameMode(GameMode.SPECTATOR); player.teleport(fightTeam.getSpawn());