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

28 lines
937 B
Diff
Raw Normal View History

2022-08-06 07:40:00 +10:00
From 9e68d4fce86a67bc2fb5ef5ad31727380effa013 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
2022-07-01 20:42:44 +10:00
index 66f72dc8..6d6810cc 100644
--- a/src/main/java/org/bukkit/Server.java
+++ b/src/main/java/org/bukkit/Server.java
2022-07-01 20:42:44 +10:00
@@ -1663,6 +1663,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
--
2022-06-12 18:29:19 +10:00
2.34.1