mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2024-11-30 01:13:38 +01:00
null fix
This commit is contained in:
parent
ba41294748
commit
d822f39133
@ -1,5 +1,6 @@
|
||||
package net.Indyuce.mmocore.comp.mythicmobs.skill.handlers;
|
||||
|
||||
import io.lumine.mythic.utils.Schedulers;
|
||||
import net.Indyuce.mmocore.api.player.PlayerData;
|
||||
import net.Indyuce.mmocore.comp.mythicmobs.skill.MythicMobSkill;
|
||||
import net.Indyuce.mmocore.comp.mythicmobs.skill.PassiveMythicMobSkillHandler;
|
||||
@ -18,6 +19,9 @@ public class PlayerLoginSkillHandler extends PassiveMythicMobSkillHandler {
|
||||
|
||||
@EventHandler
|
||||
private void event(PlayerLoginEvent e){
|
||||
Schedulers.sync().runLater(() -> {
|
||||
castSkill(PlayerData.get( e.getPlayer()));
|
||||
}, 50);
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user