josh is special.

This commit is contained in:
Joshua 2021-02-19 13:54:50 -06:00
parent 8aa09295f5
commit a34127fab8

View File

@ -4,7 +4,6 @@ import net.Indyuce.mmocore.api.event.PlayerDataLoadEvent;
import net.Indyuce.mmocore.api.player.PlayerData; import net.Indyuce.mmocore.api.player.PlayerData;
import net.Indyuce.mmocore.comp.mythicmobs.skill.MythicMobSkill; import net.Indyuce.mmocore.comp.mythicmobs.skill.MythicMobSkill;
import net.Indyuce.mmocore.comp.mythicmobs.skill.PassiveMythicMobSkillHandler; import net.Indyuce.mmocore.comp.mythicmobs.skill.PassiveMythicMobSkillHandler;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler; import org.bukkit.event.EventHandler;
public class PlayerLoginSkillHandler extends PassiveMythicMobSkillHandler { public class PlayerLoginSkillHandler extends PassiveMythicMobSkillHandler {
@ -19,6 +18,6 @@ public class PlayerLoginSkillHandler extends PassiveMythicMobSkillHandler {
@EventHandler @EventHandler
private void event(PlayerDataLoadEvent e){ private void event(PlayerDataLoadEvent e){
castSkill(PlayerData.get((Player) e)); castSkill(PlayerData.get( e.getPlayer()));
} }
} }