mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-02 14:38:57 +00:00
- changed PLAYER_CHAT event to run earlier so we triger before other chat plugins.
If players are using chat modes we need to run first to cancel the chat event for other plugins.
This commit is contained in:
1 parent
1980cfe14b
commit
2f0bab1a2a
2 files changed
+4
-2
No files matched your search
+3
-1
@@ -1,4 +1,6 @@
|
||||
v0.1:
|
||||
- Initial release
|
||||
v0.2:
|
||||
- Fixed players entering regex fields in chat crashing chat.
|
||||
- Fixed players entering regex fields in chat crashing {msg}.
|
||||
- changed PLAYER_CHAT event to run earlier so we triger before other chat plugins.
|
||||
If players are using chat modes we need to run first to cancel the chat event for other plugins.
|
||||
@@ -71,7 +71,7 @@ public class Chat extends JavaPlugin {
|
||||
public void registerEvents() {
|
||||
TownyPlayerListener = new TownyPlayerHighestListener(towny);
|
||||
|
||||
pm.registerEvent(Event.Type.PLAYER_CHAT, TownyPlayerListener, Priority.Highest, this);
|
||||
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_COMMAND_PREPROCESS, TownyPlayerListener, Priority.Highest, this);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user