mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2024-12-22 04:37:42 +01:00
Improved imports
This commit is contained in:
parent
81408d8e2f
commit
d716fddbd4
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user