mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-26 20:46:59 +01:00
28 lines
931 B
Diff
28 lines
931 B
Diff
From 948e11f2b713bbda226ef75d98763a488ffeaecb 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 7aa374f..169008a 100644
|
|
--- a/src/main/java/org/bukkit/Server.java
|
|
+++ b/src/main/java/org/bukkit/Server.java
|
|
@@ -949,6 +949,13 @@ public interface Server extends PluginMessageRecipient {
|
|
public void broadcast(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.");
|
|
+ }
|
|
}
|
|
|
|
Spigot spigot();
|
|
--
|
|
2.1.4
|
|
|