Skip to content

Commit 0fb53fd

Browse files
WunderoWundero
Wundero
authored and
Wundero
committed
Final fix ish for 4.4
Gonna push this now, should fix the issues with null configs.
1 parent 89d3534 commit 0fb53fd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/me/rojo8399/placeholderapi/impl/PlaceholderAPIPlugin.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,10 @@ public void onGamePreInitializationEvent(GamePreInitializationEvent event)
290290
if (config == null) {
291291
config = new Config();
292292
this.root.setValue(Config.type, config);
293+
try {
294+
this.loader.save(root);
295+
} catch (Exception e) {
296+
}
293297
}
294298
File msgFile = new File(configDir.toFile(), "messages.conf");
295299
msgloader = HoconConfigurationLoader.builder().setFile(msgFile).build();

0 commit comments

Comments
 (0)