Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
Quit: try to fix <player> hover not replacing it
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFaser committed Nov 19, 2023
1 parent df09d5b commit 95c36e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;
Expand Down

0 comments on commit 95c36e3

Please sign in to comment.