From 3516fd4cf00e6fac13add378365ecdd68ce6d772 Mon Sep 17 00:00:00 2001 From: Garsooon Date: Wed, 8 Oct 2025 19:35:20 +0900 Subject: [PATCH 1/2] Set priority to highest --- .../java/org/garsooon/custommessages/CustomMessages.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/garsooon/custommessages/CustomMessages.java b/src/main/java/org/garsooon/custommessages/CustomMessages.java index f67ed56..9758f61 100644 --- a/src/main/java/org/garsooon/custommessages/CustomMessages.java +++ b/src/main/java/org/garsooon/custommessages/CustomMessages.java @@ -40,9 +40,9 @@ public void onEnable() { loadBlacklist(); PluginManager pm = getServer().getPluginManager(); - pm.registerEvent(Event.Type.PLAYER_JOIN, playerListener, Event.Priority.Normal, this); - pm.registerEvent(Event.Type.PLAYER_QUIT, playerListener, Event.Priority.Normal, this); - pm.registerEvent(Event.Type.PLAYER_KICK, playerListener, Event.Priority.Normal, this); + pm.registerEvent(Event.Type.PLAYER_JOIN, playerListener, Event.Priority.Highest, this); + pm.registerEvent(Event.Type.PLAYER_QUIT, playerListener, Event.Priority.Highest, this); + pm.registerEvent(Event.Type.PLAYER_KICK, playerListener, Event.Priority.Highest, this); getServer().getLogger().info("[CustomMessages] Plugin enabled!"); } From f78bf30323a49f93bdd6a164f161e267d969eb95 Mon Sep 17 00:00:00 2001 From: Garsooon Date: Wed, 8 Oct 2025 19:35:41 +0900 Subject: [PATCH 2/2] Set priority to highest --- pom.xml | 2 +- src/main/resources/plugin.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 2311d9e..3add544 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ org.garsooon CustomMessages - 1.0.1 + 1.0.2 jar diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 3d53f0d..4d8d7e2 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,5 +1,5 @@ name: CustomMessages -version: 1.0.1 +version: 1.0.2 main: org.garsooon.custommessages.CustomMessages author: Garsooon