From dc3379f6da075cf9eee988a5a116767a74955e78 Mon Sep 17 00:00:00 2001 From: Dinnerbone Date: Fri, 2 Sep 2011 20:46:44 +0100 Subject: [PATCH] Added new autosave methods to World --- src/main/java/org/bukkit/World.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/main/java/org/bukkit/World.java b/src/main/java/org/bukkit/World.java index 3c416de1..c46e963a 100644 --- a/src/main/java/org/bukkit/World.java +++ b/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 */