From f4545766e36d51b086d757779b56d2ba72ea69fe Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Fri, 2 Sep 2011 20:46:44 +0100 Subject: [PATCH] Added new autosave methods to World By: Dinnerbone --- paper-api/src/main/java/org/bukkit/World.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/World.java b/paper-api/src/main/java/org/bukkit/World.java index 3c416de1a2..c46e963a87 100644 --- a/paper-api/src/main/java/org/bukkit/World.java +++ b/paper-api/src/main/java/org/bukkit/World.java @@ -700,6 +700,20 @@ public interface World { */ public void setKeepSpawnInMemory(boolean keepLoaded); + /** + * Gets whether or not the world will automatically save + * + * @return true if the world will automatically save, otherwise false + */ + public boolean isAutoSave(); + + /** + * Sets whether or not the world will automatically save + * + * @param value true if the world should automatically save, otherwise false + */ + public void setAutoSave(boolean value); + /** * Represents various map environment types that a world may be */