From d716fddbd4cb62f070339e726968d3c8cd33c0f4 Mon Sep 17 00:00:00 2001 From: Indyuce Date: Wed, 17 Aug 2022 18:09:27 +0200 Subject: [PATCH] Improved imports --- .../Indyuce/mmoitems/comp/mmocore/MMOCoreHook.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/MMOItems-API/src/main/java/net/Indyuce/mmoitems/comp/mmocore/MMOCoreHook.java b/MMOItems-API/src/main/java/net/Indyuce/mmoitems/comp/mmocore/MMOCoreHook.java index 70b6ce23..1765ed78 100644 --- a/MMOItems-API/src/main/java/net/Indyuce/mmoitems/comp/mmocore/MMOCoreHook.java +++ b/MMOItems-API/src/main/java/net/Indyuce/mmoitems/comp/mmocore/MMOCoreHook.java @@ -45,22 +45,22 @@ public class MMOCoreHook implements RPGHandler, Listener { } @Override - public void refreshStats(net.Indyuce.mmoitems.api.player.PlayerData data) { + public void refreshStats(PlayerData data) { } @Override - public RPGPlayer getInfo(net.Indyuce.mmoitems.api.player.PlayerData data) { + public RPGPlayer getInfo(PlayerData data) { return new MMOCoreRPGPlayer(data); } @EventHandler public void updateInventoryOnLevelUp(PlayerLevelUpEvent event) { - net.Indyuce.mmoitems.api.player.PlayerData.get(event.getPlayer()).getInventory().scheduleUpdate(); + PlayerData.get(event.getPlayer()).getInventory().scheduleUpdate(); } @EventHandler public void updateInventoryOnClassChange(PlayerChangeClassEvent event) { - net.Indyuce.mmoitems.api.player.PlayerData.get(event.getPlayer()).getInventory().scheduleUpdate(); + PlayerData.get(event.getPlayer()).getInventory().scheduleUpdate(); } /** @@ -73,8 +73,8 @@ public class MMOCoreHook implements RPGHandler, Listener { */ @EventHandler public void updateInventoryOnLoad(AsyncPlayerDataLoadEvent event) { - if (net.Indyuce.mmoitems.api.player.PlayerData.has(event.getPlayer())) - net.Indyuce.mmoitems.api.player.PlayerData.get(event.getPlayer()).getInventory().scheduleUpdate(); + if (PlayerData.has(event.getPlayer())) + PlayerData.get(event.getPlayer()).getInventory().scheduleUpdate(); } public static class MMOCoreRPGPlayer extends RPGPlayer {