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

[Resonance] Add new Server.Shutdown(bool, bool) #2744

Merged
merged 2 commits into from
Jul 21, 2024
Merged
Changes from all commits
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
8 changes: 8 additions & 0 deletions Exiled.API/Features/Server.cs
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,14 @@ public static void AddFakeSyncVar(Type type, string name, object newValue)
/// <seealso cref="ShutdownRedirect(ushort)"/>
public static void Shutdown() => global::Shutdown.Quit();

/// <summary>
/// Shutdowns the server, disconnects all players.
/// </summary>
/// <param name="quit">Indicates whether to terminate the application after shutting down the server.</param>
/// <param name="suppressShutdownBroadcast">Indicates whether to suppress the broadcast notification about the shutdown.</param>
/// <seealso cref="ShutdownRedirect(ushort)"/>
public static void Shutdown(bool quit, bool suppressShutdownBroadcast = false) => global::Shutdown.Quit(quit, suppressShutdownBroadcast);

/// <summary>
/// Redirects players to a server on another port, restarts the current server.
/// </summary>
Expand Down
Loading