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

Commit

Permalink
Listeners: fix priority
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFaser committed Dec 3, 2023
1 parent c9cb69c commit edfabfe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion src/main/java/net/flectone/chat/module/FListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ public void registerEvents() {
}
};

EventPriority eventPriority = getEventPriority(eventClass.getSimpleName());
EventPriority eventPriority = getModule() != null
? getEventPriority(eventClass.getSimpleName())
: eh.priority();

pluginManager.registerEvent(eventClass, this, eventPriority, executor,
FlectoneChat.getPlugin(), false);
Expand Down
10 changes: 5 additions & 5 deletions src/main/resources/settings/listeners.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ extra:
PlayerInteractEvent: "MONITOR"

mark:
PlayerJoinEvent: "LOWEST"
PlayerJoinEvent: "MONITOR"
PlayerInteractEvent: "MONITOR"

item-sign:
Expand All @@ -43,14 +43,14 @@ player:

server:
status:
ServerListPingEvent: "LOWEST"
PlayerLoginEvent: "LOWEST"
ServerListPingEvent: "NORMAL"
PlayerLoginEvent: "NORMAL"

tab:
PlayerJoinEvent: "LOWEST"
PlayerJoinEvent: "MONITOR"

brand:
PlayerJoinEvent: "LOWEST"
PlayerJoinEvent: "MONITOR"

chat-bubble:
AsyncPlayerChatEvent: "HIGHEST"
Expand Down

0 comments on commit edfabfe

Please sign in to comment.