mirror of
https://hub.spigotmc.org/stash/scm/spigot/spigot.git
synced 2025-08-05 16:48:51 +00:00
27 lines
937 B
Diff
27 lines
937 B
Diff
From dd2d9339f2f229dc240b02441f0742c868c04a1a 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 dd395794..bfa9846d 100644
|
|
--- a/src/main/java/org/bukkit/Server.java
|
|
+++ b/src/main/java/org/bukkit/Server.java
|
|
@@ -1847,6 +1847,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.");
|
|
+ }
|
|
}
|
|
|
|
@NotNull
|
|
--
|
|
2.43.2
|
|
|