mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
Use HIGH instead of MONITOR priority for join/quit listeners
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user