From 612308eb9a61964a5b10b7d56587b19b83c501d9 Mon Sep 17 00:00:00 2001 From: GJ Date: Thu, 25 Apr 2013 09:20:03 -0400 Subject: [PATCH] No reason to have those variables. --- .../java/com/gmail/nossr50/listeners/SelfListener.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/listeners/SelfListener.java b/src/main/java/com/gmail/nossr50/listeners/SelfListener.java index 3cb238725..76479f112 100644 --- a/src/main/java/com/gmail/nossr50/listeners/SelfListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/SelfListener.java @@ -10,10 +10,6 @@ import com.gmail.nossr50.events.experience.McMMOPlayerLevelUpEvent; import com.gmail.nossr50.util.skills.ParticleEffectUtils; public class SelfListener implements Listener { - protected Player player; - - protected float skillValue; - @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true) public void onPlayerLevelUp(McMMOPlayerLevelUpEvent event) { if (!Config.getInstance().getLevelUpEffectsEnabled()) { @@ -26,8 +22,8 @@ public class SelfListener implements Listener { return; } - player = event.getPlayer(); - skillValue = event.getSkillLevel(); + Player player = event.getPlayer(); + float skillValue = event.getSkillLevel(); if ((skillValue % tier) == 0) { ParticleEffectUtils.runescapeModeCelebration(player, event.getSkill());