feat(chat): initialize ChatRoomLoader on plugin start
Some checks are pending
/ build (push) Waiting to run
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:
parent
316d479fd8
commit
05b9ca4cb8
1 changed files with 2 additions and 0 deletions
|
@ -32,12 +32,14 @@ public class ChatModule extends TweaksModule {
|
|||
throw new RuntimeException("Please disable enforce-secure-profile in server.properties to use chatrooms");
|
||||
}
|
||||
|
||||
ChatRoomLoader.init(getPlugin());
|
||||
getById(defaultRoom);
|
||||
registerEvents(new ChatListener(this));
|
||||
|
||||
var chatCommands = new ChatCommands(this);
|
||||
registerCommand("chat", chatCommands);
|
||||
registerCommand("chatmanage", chatCommands);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue