mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-06-17 14:12:25 +00:00
add command 'quit' as alternative to 'exit'
This commit is contained in:
+3
-2
@@ -240,7 +240,8 @@ void TConsole::Command_Help(const std::string&, const std::vector<std::string>&
|
|||||||
static constexpr const char* sHelpString = R"(
|
static constexpr const char* sHelpString = R"(
|
||||||
Commands:
|
Commands:
|
||||||
help displays this help
|
help displays this help
|
||||||
exit shuts down the server
|
exit
|
||||||
|
quit shuts down the server
|
||||||
kick <name> [reason] kicks specified player with an optional reason
|
kick <name> [reason] kicks specified player with an optional reason
|
||||||
list lists all players and info about them
|
list lists all players and info about them
|
||||||
say <message> sends the message to all players in chat
|
say <message> sends the message to all players in chat
|
||||||
@@ -775,7 +776,7 @@ TConsole::TConsole() {
|
|||||||
} else {
|
} else {
|
||||||
if (!mLuaEngine) {
|
if (!mLuaEngine) {
|
||||||
beammp_error("Attempted to run a command before Lua engine started. Please wait and try again.");
|
beammp_error("Attempted to run a command before Lua engine started. Please wait and try again.");
|
||||||
} else if (cmd == "exit") {
|
} else if (cmd == "exit" || cmd == "quit") {
|
||||||
beammp_info("gracefully shutting down");
|
beammp_info("gracefully shutting down");
|
||||||
Application::GracefullyShutdown();
|
Application::GracefullyShutdown();
|
||||||
} else if (cmd == "say") {
|
} else if (cmd == "say") {
|
||||||
|
|||||||
Reference in New Issue
Block a user