0
0
mirror of https://hub.spigotmc.org/stash/scm/spigot/spigot.git synced 2025-07-19 20:42:00 +00:00
Files
spigot/Bukkit-Patches/0009-Add-restart-API.patch
2025-07-14 19:28:46 +10:00

28 lines
919 B
Diff

From 0ba4b2d8fb1fb9b6949427235b33ad880f608d41 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 4740b8ad..ba7e41d1 100644
--- a/src/main/java/org/bukkit/Server.java
+++ b/src/main/java/org/bukkit/Server.java
@@ -1870,6 +1870,13 @@ public interface Server extends PluginMessageRecipient {
public org.bukkit.configuration.file.YamlConfiguration getConfig() {
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.50.1