Enabled Sponge Webserver by default

Affects issues:
- Close #1548
This commit is contained in:
Risto Lahtela 2020-08-12 12:42:15 +03:00
parent 9659ef2f08
commit dd9c8428a1

View File

@ -20,7 +20,6 @@ import com.djrapitops.plan.exceptions.EnableException;
import com.djrapitops.plan.settings.config.PlanConfig;
import com.djrapitops.plan.settings.config.changes.ConfigUpdater;
import com.djrapitops.plan.settings.config.paths.DataGatheringSettings;
import com.djrapitops.plan.settings.config.paths.WebserverSettings;
import com.djrapitops.plan.settings.network.ServerSettingsManager;
import com.djrapitops.plan.settings.theme.Theme;
import com.djrapitops.plan.storage.file.PlanFiles;
@ -32,7 +31,7 @@ import javax.inject.Singleton;
import java.io.IOException;
/**
* Sponge ConfigSystem that disables WebServer and Geolocations on first enable.
* Sponge ConfigSystem that disables Geolocations on first enable.
*
* @author Rsl1122
*/
@ -64,11 +63,9 @@ public class SpongeConfigSystem extends BukkitConfigSystem {
protected void copyDefaults() throws IOException {
super.copyDefaults();
if (firstInstall) {
logger.info("§eWebServer and Geolocations disabled by default on Sponge servers. You can enable them in the config:");
logger.info("§e " + WebserverSettings.DISABLED.getPath());
logger.info("§eGeolocations disabled by default on Sponge servers. You can enable them in the config:");
logger.info("§e " + DataGatheringSettings.GEOLOCATIONS.getPath());
config.set(WebserverSettings.DISABLED, true);
config.set(DataGatheringSettings.GEOLOCATIONS, false);
config.save();
}