Skip to content

Commit

Permalink
Load the configuration after server started (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikijaz authored Jun 26, 2022
1 parent a075b28 commit 9c8c635
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/eu/pb4/styledchat/StyledChatMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,13 @@ public void onInitialize() {

ServerLifecycleEvents.SERVER_STARTING.register((s) -> {
this.crabboardDetection();
ConfigManager.loadConfig();
server = s;
});

ServerLifecycleEvents.SERVER_STARTED.register((s) -> {
ConfigManager.loadConfig();
});

ServerLifecycleEvents.SERVER_STOPPED.register((s) -> {
server = null;
});
Expand Down

0 comments on commit 9c8c635

Please sign in to comment.