From 2f302f489297848d5bb3cbd0feef4a4b0aabf75e Mon Sep 17 00:00:00 2001 From: xGamingDudex Date: Tue, 16 Feb 2016 18:54:13 +0100 Subject: [PATCH] Fixed NPE for Gladiators death event --- .../nautilus/game/arcade/game/games/gladiators/Gladiators.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/gladiators/Gladiators.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/gladiators/Gladiators.java index fbf5edc54..a60a82c40 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/gladiators/Gladiators.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/gladiators/Gladiators.java @@ -1078,7 +1078,7 @@ public class Gladiators extends SoloGame if (!(e.GetEvent().getEntity() instanceof Player)) return; - if (e.GetLog().GetKiller().IsPlayer()) + if (e.GetLog().GetKilledColor() != null && e.GetLog().GetKiller().IsPlayer()) { Player killer = UtilPlayer.searchExact(e.GetLog().GetKiller().GetName()); ((Player)e.GetEvent().getEntity()).sendMessage(F.main("Game", "Your killer had " + C.cRed + (new DecimalFormat("#.#").format((killer.getHealth() / 2))) + "❤" + C.cGray + " left."));