mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-30 19:22:14 +00:00
When granting or revoking privileges, notify the target player too
This commit is contained in:
parent
6470743e51
commit
07d000cc54
3 changed files with 27 additions and 2 deletions
|
@ -4148,6 +4148,14 @@ void Server::saveConfig()
|
|||
g_settings->updateConfigFile(m_configpath.c_str());
|
||||
}
|
||||
|
||||
void Server::notifyPlayer(const char *name, const std::wstring msg)
|
||||
{
|
||||
Player *player = m_env.getPlayer(name);
|
||||
if(!player)
|
||||
return;
|
||||
SendChatMessage(player->peer_id, std::wstring(L"Server: -!- ")+msg);
|
||||
}
|
||||
|
||||
v3f findSpawnPos(ServerMap &map)
|
||||
{
|
||||
//return v3f(50,50,50)*BS;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue