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

28 lines
937 B
Diff
Raw Normal View History

2019-03-17 11:48:53 +11:00
From 98847d9e72fb6c0e29efc4e82a93098d2ecd0968 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
2019-03-13 17:43:06 +11:00
index 53a398fc..12660040 100644
--- a/src/main/java/org/bukkit/Server.java
+++ b/src/main/java/org/bukkit/Server.java
2019-03-13 17:43:06 +11:00
@@ -1295,6 +1295,13 @@ public interface Server extends PluginMessageRecipient {
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
--
2018-11-14 14:20:34 +11:00
2.19.1