mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Server kicks: make messages configurable, cache wstring
This commit is contained in:
parent
f9dbec6edf
commit
bf7174f3f9
4 changed files with 14 additions and 4 deletions
|
@ -397,8 +397,8 @@ Server::~Server()
|
|||
infostream << "Server: Saving players" << std::endl;
|
||||
m_env->saveLoadedPlayers();
|
||||
|
||||
infostream << "Server: kick players" << std::endl;
|
||||
m_env->kickAllPlayers("Server shutting down...");
|
||||
infostream << "Server: Kicking players" << std::endl;
|
||||
m_env->kickAllPlayers(g_settings->get("kick_msg_shutdown"));
|
||||
|
||||
infostream << "Server: Saving environment metadata" << std::endl;
|
||||
m_env->saveMeta();
|
||||
|
@ -502,7 +502,7 @@ void Server::step(float dtime)
|
|||
throw ServerError(async_err);
|
||||
}
|
||||
else {
|
||||
m_env->kickAllPlayers("The server has crashed. Disconnecting all players. Please reconnect soon...");
|
||||
m_env->kickAllPlayers(g_settings->get("kick_msg_crash"));
|
||||
errorstream << "UNRECOVERABLE error occurred. Stopping server. "
|
||||
<< "Please fix the following error:" << std::endl
|
||||
<< async_err << std::endl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue