From 1d1a1d96f888d4ed99ffe427db898843a60045ee Mon Sep 17 00:00:00 2001 From: Jonathan Williams Date: Sun, 29 Nov 2015 02:39:37 -0600 Subject: [PATCH] Fixed onAbilityUsed bug with _player (presumably because it was added to cull and _player was set to null right before SkillTriggerEvent happened.) --- .../game/clans/tutorials/gettingstarted/TaskUseAbility.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/tutorials/gettingstarted/TaskUseAbility.java b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/tutorials/gettingstarted/TaskUseAbility.java index 170d49123..af9289b7a 100644 --- a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/tutorials/gettingstarted/TaskUseAbility.java +++ b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/tutorials/gettingstarted/TaskUseAbility.java @@ -68,7 +68,7 @@ public class TaskUseAbility extends TutorialTask @EventHandler public void onAbilityUesd(SkillTriggerEvent event) { - if (!_player.equals(event.GetPlayer())) + if (_player == null || !_player.equals(event.GetPlayer())) { return; }