diff --git a/MMOCore-API/src/main/java/net/Indyuce/mmocore/api/eco/Withdraw.java b/MMOCore-API/src/main/java/net/Indyuce/mmocore/api/eco/Withdraw.java index b158f680..ace8a511 100644 --- a/MMOCore-API/src/main/java/net/Indyuce/mmocore/api/eco/Withdraw.java +++ b/MMOCore-API/src/main/java/net/Indyuce/mmocore/api/eco/Withdraw.java @@ -1,6 +1,5 @@ package net.Indyuce.mmocore.api.eco; -import io.lumine.mythic.lib.api.event.PlayerLogoutEvent; import io.lumine.mythic.lib.api.util.SmartGive; import net.Indyuce.mmocore.MMOCore; import net.Indyuce.mmocore.api.ConfigMessage; @@ -14,6 +13,7 @@ import org.bukkit.event.HandlerList; import org.bukkit.event.Listener; import org.bukkit.event.player.AsyncPlayerChatEvent; import org.bukkit.event.player.PlayerMoveEvent; +import org.bukkit.event.player.PlayerQuitEvent; import org.bukkit.inventory.ItemStack; import java.util.HashSet; @@ -114,7 +114,7 @@ public class Withdraw implements Listener { } @EventHandler - public void c(PlayerLogoutEvent event) { + public void c(PlayerQuitEvent event) { if (event.getPlayer().equals(player)) close(); } } diff --git a/MMOCore-API/src/main/java/net/Indyuce/mmocore/party/provided/PartyListener.java b/MMOCore-API/src/main/java/net/Indyuce/mmocore/party/provided/PartyListener.java index 45488891..1db93bf6 100644 --- a/MMOCore-API/src/main/java/net/Indyuce/mmocore/party/provided/PartyListener.java +++ b/MMOCore-API/src/main/java/net/Indyuce/mmocore/party/provided/PartyListener.java @@ -1,6 +1,5 @@ package net.Indyuce.mmocore.party.provided; -import io.lumine.mythic.lib.api.event.PlayerLogoutEvent; import net.Indyuce.mmocore.MMOCore; import net.Indyuce.mmocore.api.ConfigMessage; import net.Indyuce.mmocore.api.event.social.PartyChatEvent; @@ -11,6 +10,7 @@ import org.bukkit.event.EventHandler; import org.bukkit.event.EventPriority; import org.bukkit.event.Listener; import org.bukkit.event.player.AsyncPlayerChatEvent; +import org.bukkit.event.player.PlayerQuitEvent; public class PartyListener implements Listener { private final MMOCorePartyModule module; @@ -42,7 +42,7 @@ public class PartyListener implements Listener { } @EventHandler(priority = EventPriority.LOW) - public void leavePartyOnQuit(PlayerLogoutEvent event) { + public void leavePartyOnQuit(PlayerQuitEvent event) { final PlayerData playerData = PlayerData.get(event.getPlayer()); final AbstractParty party = playerData.getParty(); if (party != null) ((Party) party).removeMember(playerData);