diff --git a/src/main/java/net/flectone/chat/listener/FPlayerActionListener.java b/src/main/java/net/flectone/chat/listener/FPlayerActionListener.java index 9465ffa..bc1d901 100644 --- a/src/main/java/net/flectone/chat/listener/FPlayerActionListener.java +++ b/src/main/java/net/flectone/chat/listener/FPlayerActionListener.java @@ -60,7 +60,7 @@ public void playerJoinEvent(@NotNull PlayerJoinEvent event) { fPlayer.getMailList().clear(); } - @EventHandler(priority = EventPriority.LOWEST) + @EventHandler(priority = EventPriority.HIGHEST) public void playerQuitEvent(@NotNull PlayerQuitEvent event) { FPlayer fPlayer = playerManager.get(event.getPlayer()); if (fPlayer == null) return; diff --git a/src/main/java/net/flectone/chat/module/serverMessage/quit/QuitListener.java b/src/main/java/net/flectone/chat/module/serverMessage/quit/QuitListener.java index 7bd256e..381a5df 100644 --- a/src/main/java/net/flectone/chat/module/serverMessage/quit/QuitListener.java +++ b/src/main/java/net/flectone/chat/module/serverMessage/quit/QuitListener.java @@ -5,6 +5,7 @@ import net.flectone.chat.module.integrations.IntegrationsModule; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; +import org.bukkit.event.EventPriority; import org.bukkit.event.player.PlayerQuitEvent; import org.jetbrains.annotations.NotNull; @@ -20,7 +21,7 @@ public void init() { register(); } - @EventHandler + @EventHandler(priority = EventPriority.LOWEST) public void playerQuitEvent(@NotNull PlayerQuitEvent event) { Player player = event.getPlayer(); if (hasNoPermission(player)) return;