diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-03-31 16:23:26 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-03-31 16:25:02 +0300 |
commit | 52122c342d335a2561ace87c9d8deaa16a136604 (patch) | |
tree | 33ed625674d82c505b347adf26307748c85c8cfc /src/server.h | |
parent | 96ee73f79018c8aae22a392af6f66f9a05cb0174 (diff) | |
download | minetest-52122c342d335a2561ace87c9d8deaa16a136604.tar.gz minetest-52122c342d335a2561ace87c9d8deaa16a136604.tar.bz2 minetest-52122c342d335a2561ace87c9d8deaa16a136604.zip |
Add 'fly' and 'fast' privileges and the underlying privileges-to-client system
Diffstat (limited to 'src/server.h')
-rw-r--r-- | src/server.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server.h b/src/server.h index 4b04044e1..abe466b16 100644 --- a/src/server.h +++ b/src/server.h @@ -502,6 +502,7 @@ public: // Envlock + conlock std::set<std::string> getPlayerEffectivePrivs(const std::string &name); bool checkPriv(const std::string &name, const std::string &priv); + void reportPrivsModified(const std::string &name=""); // ""=all // Saves g_settings to configpath given at initialization void saveConfig(); @@ -592,11 +593,12 @@ private: */ // Envlock and conlock should be locked when calling these - void SendMovePlayer(u16 peer_id); void SendInventory(u16 peer_id); void SendChatMessage(u16 peer_id, const std::wstring &message); void BroadcastChatMessage(const std::wstring &message); void SendPlayerHP(u16 peer_id); + void SendMovePlayer(u16 peer_id); + void SendPlayerPrivileges(u16 peer_id); /* Send a node removal/addition event to all clients except ignore_id. Additionally, if far_players!=NULL, players further away than |