mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-05 16:49:39 +00:00
Added method to shutdown the server
This commit is contained in:
parent
c1f858534b
commit
facfd2ff2a
2 changed files with 9 additions and 0 deletions
|
@ -215,4 +215,8 @@ public final class Bukkit {
|
|||
public static boolean getAllowFlight() {
|
||||
return server.getAllowFlight();
|
||||
}
|
||||
|
||||
public static void shutdown() {
|
||||
server.shutdown();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue