1
0
Fork 0
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:
Perttu Ahola 2011-10-16 20:03:43 +03:00
parent 6470743e51
commit 07d000cc54
3 changed files with 27 additions and 2 deletions

View file

@ -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;