Skip to content

Commit

Permalink
Fixed Plan not enabling on proxies on 2nd enable
Browse files Browse the repository at this point in the history
  • Loading branch information
AuroraLS3 committed Nov 17, 2020
1 parent a078609 commit efe605b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import com.djrapitops.plan.exceptions.EnableException;
import com.djrapitops.plan.identification.Server;
import com.djrapitops.plan.settings.config.Config;
import com.djrapitops.plan.settings.config.ConfigNode;
import com.djrapitops.plan.settings.config.ConfigReader;
import com.djrapitops.plan.settings.config.PlanConfig;
import com.djrapitops.plan.settings.config.paths.PluginSettings;
Expand Down Expand Up @@ -69,7 +70,9 @@ public Optional<Server> load(UUID loaded) {

Integer id = getInteger("Server.ID");
UUID serverUUID = UUID.fromString(serverUUIDString);
String name = config.get(PluginSettings.SERVER_NAME);
String name = config.getNode(PluginSettings.SERVER_NAME.getPath())
.map(ConfigNode::getString)
.orElse("BungeeCord");
String address = getString("Server.Web_address");

return Optional.of(new Server(id, serverUUID, name, address));
Expand Down

0 comments on commit efe605b

Please sign in to comment.