From facfd2ff2aae65f989deaacecf1dba8b6ee05f00 Mon Sep 17 00:00:00 2001 From: Dinnerbone Date: Fri, 2 Sep 2011 20:18:10 +0100 Subject: Added method to shutdown the server --- src/main/java/org/bukkit/Bukkit.java | 4 ++++ src/main/java/org/bukkit/Server.java | 5 +++++ 2 files changed, 9 insertions(+) (limited to 'src') diff --git a/src/main/java/org/bukkit/Bukkit.java b/src/main/java/org/bukkit/Bukkit.java index 03bd9c83..0d6e2874 100644 --- a/src/main/java/org/bukkit/Bukkit.java +++ b/src/main/java/org/bukkit/Bukkit.java @@ -215,4 +215,8 @@ public final class Bukkit { public static boolean getAllowFlight() { return server.getAllowFlight(); } + + public static void shutdown() { + server.shutdown(); + } } diff --git a/src/main/java/org/bukkit/Server.java b/src/main/java/org/bukkit/Server.java index d7dfe92d..ab512269 100644 --- a/src/main/java/org/bukkit/Server.java +++ b/src/main/java/org/bukkit/Server.java @@ -346,4 +346,9 @@ public interface Server { * @return Whether this server allows flying or not. */ public boolean getAllowFlight(); + + /** + * Shutdowns the server, stopping everything. + */ + public void shutdown(); } -- cgit v1.2.3