mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-01-03 06:37:47 +01:00
fixed event reference for mmocore compatibility
This commit is contained in:
parent
daf8b244cb
commit
b70de74f54
@ -6,7 +6,7 @@ import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.Listener;
|
||||
|
||||
import net.Indyuce.mmocore.MMOCore;
|
||||
import net.Indyuce.mmocore.api.event.LevelUpEvent;
|
||||
import net.Indyuce.mmocore.api.event.PlayerLevelUpEvent;
|
||||
import net.Indyuce.mmocore.api.player.PlayerData;
|
||||
import net.Indyuce.mmocore.api.player.stats.StatType;
|
||||
import net.Indyuce.mmoitems.MMOItems;
|
||||
@ -47,7 +47,7 @@ public class MMOCoreHook implements RPGHandler, Listener {
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void a(LevelUpEvent event) {
|
||||
public void a(PlayerLevelUpEvent event) {
|
||||
net.Indyuce.mmoitems.api.player.PlayerData.get(event.getPlayer()).scheduleDelayedInventoryUpdate();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user