mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-02 14:38:57 +00:00
Changed priority so we parse open chat before herochat (else herochat still shows messages intended for tc/nc modes)
This commit is contained in:
1 parent
2f0bab1a2a
commit
fd6648676b
1 file changed
+1
-1
@@ -71,7 +71,7 @@ public class Chat extends JavaPlugin {
|
||||
public void registerEvents() {
|
||||
TownyPlayerListener = new TownyPlayerHighestListener(towny);
|
||||
|
||||
pm.registerEvent(Event.Type.PLAYER_CHAT, TownyPlayerListener, Priority.High, this); //Run this one level lower so we go before other chat plugins.
|
||||
pm.registerEvent(Event.Type.PLAYER_CHAT, TownyPlayerListener, Priority.Normal, this); //Run this lower so we go before herochat.
|
||||
pm.registerEvent(Event.Type.PLAYER_COMMAND_PREPROCESS, TownyPlayerListener, Priority.Highest, this);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user