mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 23:26:45 +01:00
No reason to have those variables.
This commit is contained in:
parent
98dc7b853a
commit
612308eb9a
@ -10,10 +10,6 @@ import com.gmail.nossr50.events.experience.McMMOPlayerLevelUpEvent;
|
|||||||
import com.gmail.nossr50.util.skills.ParticleEffectUtils;
|
import com.gmail.nossr50.util.skills.ParticleEffectUtils;
|
||||||
|
|
||||||
public class SelfListener implements Listener {
|
public class SelfListener implements Listener {
|
||||||
protected Player player;
|
|
||||||
|
|
||||||
protected float skillValue;
|
|
||||||
|
|
||||||
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
|
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
|
||||||
public void onPlayerLevelUp(McMMOPlayerLevelUpEvent event) {
|
public void onPlayerLevelUp(McMMOPlayerLevelUpEvent event) {
|
||||||
if (!Config.getInstance().getLevelUpEffectsEnabled()) {
|
if (!Config.getInstance().getLevelUpEffectsEnabled()) {
|
||||||
@ -26,8 +22,8 @@ public class SelfListener implements Listener {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
player = event.getPlayer();
|
Player player = event.getPlayer();
|
||||||
skillValue = event.getSkillLevel();
|
float skillValue = event.getSkillLevel();
|
||||||
|
|
||||||
if ((skillValue % tier) == 0) {
|
if ((skillValue % tier) == 0) {
|
||||||
ParticleEffectUtils.runescapeModeCelebration(player, event.getSkill());
|
ParticleEffectUtils.runescapeModeCelebration(player, event.getSkill());
|
||||||
|
Loading…
Reference in New Issue
Block a user