mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-29 19:41:35 +01:00
parent
9659ef2f08
commit
dd9c8428a1
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user