Skip to content

Commit

Permalink
Expose isRunning on the api-level
Browse files Browse the repository at this point in the history
  • Loading branch information
ericlmao committed Dec 29, 2024
1 parent 15bd33b commit b6b83c2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api/src/main/java/net/md_5/bungee/api/ProxyServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
5 changes: 5 additions & 0 deletions proxy/src/main/java/net/md_5/bungee/BungeeCord.java
Original file line number Diff line number Diff line change
Expand Up @@ -831,4 +831,9 @@ public Title createTitle()
{
return new BungeeTitle();
}

@Override
public boolean isRunning() {
return this.isRunning;
}
}

0 comments on commit b6b83c2

Please sign in to comment.