Eniripsa96 / SkillAPI

A flexible API for easily creating skills and classes with visual skill trees
112 stars 111 forks source link

Mana won't regen #500

Closed Snozbear closed 2 weeks ago

Snozbear commented 4 years ago

Hi there, I'm having this issue where mana won't regen passively. I can add mana manually and use it for skills but that's all. Using Paper 242 for minecraft 1.14.4, skillapi premium version 1.90.

[04:54:42] [Thread-44/WARN]: java.lang.IllegalStateException: PlayerManaGainEvent may only be triggered synchronously. [04:54:42] [Thread-44/WARN]: at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:533) [04:54:42] [Thread-44/WARN]: at com.sucy.skill.api.player.PlayerData.giveMana(PlayerData.java:1485) [04:54:42] [Thread-44/WARN]: at com.sucy.skill.api.player.PlayerData.regenMana(PlayerData.java:1453) [04:54:42] [Thread-44/WARN]: at com.sucy.skill.task.ManaTask.run(ManaTask.java:67) [04:54:42] [Thread-44/WARN]: at com.sucy.skill.thread.RepeatThreadTask.tick(RepeatThreadTask.java:62) [04:54:42] [Thread-44/WARN]: at com.sucy.skill.thread.MainThread.run(MainThread.java:61)