mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-05 06:32:17 -07:00
Added method to shutdown the server
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
@@ -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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -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();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user