From d2c91739434b64780f2c623f8d88e5e4bd7cfb38 Mon Sep 17 00:00:00 2001 From: cnr Date: Thu, 15 Jun 2017 17:19:19 -0500 Subject: [PATCH] Add missing instanceof check --- .../src/mineplex/hub/brawl/fountain/FountainManager.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Plugins/Mineplex.Hub/src/mineplex/hub/brawl/fountain/FountainManager.java b/Plugins/Mineplex.Hub/src/mineplex/hub/brawl/fountain/FountainManager.java index 22845867e..5bbeb6618 100644 --- a/Plugins/Mineplex.Hub/src/mineplex/hub/brawl/fountain/FountainManager.java +++ b/Plugins/Mineplex.Hub/src/mineplex/hub/brawl/fountain/FountainManager.java @@ -52,7 +52,10 @@ public class FountainManager extends MiniPlugin @EventHandler public void onDamage(EntityDamageByEntityEvent event) { - tryBrawl((Player)event.getDamager(), event.getEntity()); + if (event.getDamager() instanceof Player) + { + tryBrawl((Player) event.getDamager(), event.getEntity()); + } } private void tryBrawl(Player player, Entity entity)