Use HIGH instead of MONITOR priority for join/quit listeners

This commit is contained in:
Jason Penilla committed 2023-03-16 13:56:41 -07:00
1 parent b8aed89f36
commit 8e3a6935a3
1 file changed
+2 -2
@@ -50,7 +50,7 @@ public class PaperPlayerJoinListener implements Listener {
this.userManager = userManager;
}
@EventHandler(priority = EventPriority.MONITOR)
@EventHandler(priority = EventPriority.HIGH)
public void onJoin(final PlayerJoinEvent event) {
this.carbonChat.server().userManager().carbonPlayer(event.getPlayer().getUniqueId()).thenAccept(result -> {
if (result.player() == null) {
@@ -65,7 +65,7 @@ public class PaperPlayerJoinListener implements Listener {
});
}
@EventHandler(priority = EventPriority.MONITOR)
@EventHandler(priority = EventPriority.HIGH)
public void onQuit(final PlayerQuitEvent event) {
this.carbonChat.server().userManager().carbonPlayer(event.getPlayer().getUniqueId()).thenAccept(result -> {
if (result.player() == null) {