feat(chat): initialize ChatRoomLoader on plugin start
Some checks are pending
/ build (push) Waiting to run

- Added ChatRoomLoader initialization during ChatModule setup.
- Ensures necessary resources are loaded before chat operations.

Signed-off-by: Minecon724 <git@m724.eu>
This commit is contained in:
Minecon724 2025-02-03 11:27:21 +01:00
parent 316d479fd8
commit 05b9ca4cb8
Signed by: Minecon724
GPG key ID: 3CCC4D267742C8E8

View file

@ -32,12 +32,14 @@ public class ChatModule extends TweaksModule {
throw new RuntimeException("Please disable enforce-secure-profile in server.properties to use chatrooms"); throw new RuntimeException("Please disable enforce-secure-profile in server.properties to use chatrooms");
} }
ChatRoomLoader.init(getPlugin());
getById(defaultRoom); getById(defaultRoom);
registerEvents(new ChatListener(this)); registerEvents(new ChatListener(this));
var chatCommands = new ChatCommands(this); var chatCommands = new ChatCommands(this);
registerCommand("chat", chatCommands); registerCommand("chat", chatCommands);
registerCommand("chatmanage", chatCommands); registerCommand("chatmanage", chatCommands);
} }
/** /**