Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[API] Add and expose isRunning #3770

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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() {
ericlmao marked this conversation as resolved.
Show resolved Hide resolved
return this.isRunning;
}
}
Loading