Fixed Server ID not being stored in ServerInfoFile.yml

This commit is contained in:
Risto Lahtela 2020-11-18 09:19:32 +02:00
parent 9eb641b5ef
commit 87fd3b0762
3 changed files with 3 additions and 0 deletions

View File

@ -76,6 +76,7 @@ public class BungeeServerInfo extends ServerInfo {
server.setWebAddress(address);
fromDatabase.save(server);
server = fromDatabase.load(server.getUuid()).orElse(server);
fromFile.save(server);
}

View File

@ -80,6 +80,7 @@ public class ServerServerInfo extends ServerInfo {
server.setWebAddress(address);
fromDatabase.save(server);
server = fromDatabase.load(server.getUuid()).orElse(server);
fromFile.save(server);
}

View File

@ -75,6 +75,7 @@ public class VelocityServerInfo extends ServerInfo {
server.setWebAddress(address);
fromDatabase.save(server);
server = fromDatabase.load(server.getUuid()).orElse(server);
fromFile.save(server);
}