Implemented server autosave config (#1296)

This commit is contained in:
Anuken
2020-07-14 11:11:49 -04:00
parent b48e6d0e2f
commit fbd55a341e
3 changed files with 48 additions and 4 deletions

View File

@@ -1824,9 +1824,9 @@ public class Blocks implements ContentList{
}};
illuminator = new LightBlock("illuminator"){{
requirements(Category.effect, BuildVisibility.lightingOnly, with(Items.graphite, 10, Items.silicon, 8));
requirements(Category.effect, BuildVisibility.lightingOnly, with(Items.graphite, 12, Items.silicon, 8));
brightness = 0.67f;
radius = 130f;
radius = 140f;
consumes.power(0.06f);
}};

View File

@@ -567,7 +567,10 @@ public class Administration{
socketInputAddress("The bind address for socket input.", "localhost", () -> Events.fire(Trigger.socketConfigChanged)),
allowCustomClients("Whether custom clients are allowed to connect.", !headless, "allow-custom"),
whitelist("Whether the whitelist is used.", false),
motd("The message displayed to people on connection.", "off");
motd("The message displayed to people on connection.", "off"),
autosave("Whether the periodically save the map when playing.", false),
autosaveAmount("The maximum amount of autosaves. Older ones get replaced.", 10),
autosaveSpacing("Spacing between autosaves in seconds.", 60 * 5);
public static final Config[] all = values();