From 87fd3b0762f3230871e57bcf096e41c5b4a0ea6f Mon Sep 17 00:00:00 2001 From: Risto Lahtela <24460436+Rsl1122@users.noreply.github.com> Date: Wed, 18 Nov 2020 09:19:32 +0200 Subject: [PATCH] Fixed Server ID not being stored in ServerInfoFile.yml --- .../com/djrapitops/plan/identification/BungeeServerInfo.java | 1 + .../com/djrapitops/plan/identification/ServerServerInfo.java | 1 + .../com/djrapitops/plan/identification/VelocityServerInfo.java | 1 + 3 files changed, 3 insertions(+) diff --git a/Plan/bungeecord/src/main/java/com/djrapitops/plan/identification/BungeeServerInfo.java b/Plan/bungeecord/src/main/java/com/djrapitops/plan/identification/BungeeServerInfo.java index f7b77b304..15737d19b 100644 --- a/Plan/bungeecord/src/main/java/com/djrapitops/plan/identification/BungeeServerInfo.java +++ b/Plan/bungeecord/src/main/java/com/djrapitops/plan/identification/BungeeServerInfo.java @@ -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); } diff --git a/Plan/common/src/main/java/com/djrapitops/plan/identification/ServerServerInfo.java b/Plan/common/src/main/java/com/djrapitops/plan/identification/ServerServerInfo.java index 6a31a379f..16859ced8 100644 --- a/Plan/common/src/main/java/com/djrapitops/plan/identification/ServerServerInfo.java +++ b/Plan/common/src/main/java/com/djrapitops/plan/identification/ServerServerInfo.java @@ -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); } diff --git a/Plan/velocity/src/main/java/com/djrapitops/plan/identification/VelocityServerInfo.java b/Plan/velocity/src/main/java/com/djrapitops/plan/identification/VelocityServerInfo.java index 4447d6361..e8c7b4ef7 100644 --- a/Plan/velocity/src/main/java/com/djrapitops/plan/identification/VelocityServerInfo.java +++ b/Plan/velocity/src/main/java/com/djrapitops/plan/identification/VelocityServerInfo.java @@ -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); }