Skip to content

Commit 91d288e

Browse files
committed
Update Version fix
1 parent 31cd364 commit 91d288e

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/main/java/tk/fungy/wsformc/Main.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ public void onEnable() {
3333
getLogger().info("Starting Webserbver.");
3434
Command.ws.start();
3535
}
36+
if (FileManager.config == null) {
37+
try {
38+
new FileManager().startup();
39+
} catch (UnknownHostException e) {
40+
getLogger().warning("Failed to found IP of this server, please set this manually.");
41+
}
42+
}
43+
FileManager.setStringInConfig("Version", getDescription().getVersion());
3644
Updater.startUpdater();
3745

3846
int pluginId = 17696;

0 commit comments

Comments
 (0)