diff --git a/api/src/main/java/net/md_5/bungee/api/ProxyServer.java b/api/src/main/java/net/md_5/bungee/api/ProxyServer.java index 1f330bd218..fefe2f3d22 100644 --- a/api/src/main/java/net/md_5/bungee/api/ProxyServer.java +++ b/api/src/main/java/net/md_5/bungee/api/ProxyServer.java @@ -311,4 +311,9 @@ public static void setInstance(ProxyServer instance) */ public abstract Title createTitle(); + /** + * Gets the operation state of the proxy. + * @return true if the proxy is running + */ + public abstract boolean isRunning(); } diff --git a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java index e7f3f09af9..cebfb74282 100644 --- a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java +++ b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java @@ -831,4 +831,10 @@ public Title createTitle() { return new BungeeTitle(); } + + @Override + public boolean isRunning() + { + return this.isRunning; + } }