spigot/Bukkit-Patches/0010-Add-restart-API.patch

28 lines
939 B
Diff
Raw Normal View History

From 9cbc2c39d786734a970dd0a3457daefc7d862cb0 Mon Sep 17 00:00:00 2001
From: md_5 <git@md-5.net>
Date: Mon, 13 Jul 2015 19:10:15 +1000
Subject: [PATCH] Add restart API.
diff --git a/src/main/java/org/bukkit/Server.java b/src/main/java/org/bukkit/Server.java
index ab1f7c8f6..9de411d11 100644
--- a/src/main/java/org/bukkit/Server.java
+++ b/src/main/java/org/bukkit/Server.java
@@ -1890,6 +1890,13 @@ public interface Server extends PluginMessageRecipient {
2019-03-13 17:43:06 +11:00
public void broadcast(@NotNull net.md_5.bungee.api.chat.BaseComponent... components) {
throw new UnsupportedOperationException("Not supported yet.");
}
+
+ /**
+ * Restart the server. If the server administrator has not configured restarting, the server will stop.
+ */
+ public void restart() {
+ throw new UnsupportedOperationException("Not supported yet.");
+ }
}
2019-03-13 17:43:06 +11:00
@NotNull
--
2024-12-04 03:20:00 +11:00
2.47.1