mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2024-11-28 00:55:29 +01:00
Changed how player_login works, might not ever be null now?
This commit is contained in:
parent
f470351b66
commit
8aa09295f5
@ -1,15 +1,15 @@
|
||||
package net.Indyuce.mmocore.comp.mythicmobs.skill.handlers;
|
||||
|
||||
import net.Indyuce.mmocore.api.event.PlayerDataLoadEvent;
|
||||
import net.Indyuce.mmocore.api.player.PlayerData;
|
||||
import net.Indyuce.mmocore.comp.mythicmobs.skill.MythicMobSkill;
|
||||
import net.Indyuce.mmocore.comp.mythicmobs.skill.PassiveMythicMobSkillHandler;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.player.PlayerLoginEvent;
|
||||
|
||||
public class PlayerLoginSkillHandler extends PassiveMythicMobSkillHandler {
|
||||
/**
|
||||
* Core class for all passive types
|
||||
* Used when a player logins
|
||||
*
|
||||
* @param skill
|
||||
*/
|
||||
@ -18,7 +18,7 @@ public class PlayerLoginSkillHandler extends PassiveMythicMobSkillHandler {
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
private void event(PlayerLoginEvent e){
|
||||
private void event(PlayerDataLoadEvent e){
|
||||
castSkill(PlayerData.get((Player) e));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user