Added method to shutdown the server

This commit is contained in:
Dinnerbone
2011-09-02 20:18:10 +01:00
parent f319f09fb2
commit 87e4d58e7d
2 changed files with 9 additions and 0 deletions

View File

@@ -215,4 +215,8 @@ public final class Bukkit {
public static boolean getAllowFlight() { public static boolean getAllowFlight() {
return server.getAllowFlight(); return server.getAllowFlight();
} }
public static void shutdown() {
server.shutdown();
}
} }

View File

@@ -346,4 +346,9 @@ public interface Server {
* @return Whether this server allows flying or not. * @return Whether this server allows flying or not.
*/ */
public boolean getAllowFlight(); public boolean getAllowFlight();
/**
* Shutdowns the server, stopping everything.
*/
public void shutdown();
} }