]> git.lizzy.rs Git - minetest.git/blobdiff - src/script/cpp_api/s_player.h
Add meshnode drawtype.
[minetest.git] / src / script / cpp_api / s_player.h
index 663e3c2abc851c5281f7f52e1778072e0f6abae1..c77d397c408fd28139e98c6bcca4a24472bd7252 100644 (file)
@@ -20,6 +20,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #ifndef S_PLAYER_H_
 #define S_PLAYER_H_
 
+#include <map>
+
 #include "cpp_api/s_base.h"
 
 
@@ -32,8 +34,10 @@ class ScriptApiPlayer
        void on_newplayer(ServerActiveObject *player);
        void on_dieplayer(ServerActiveObject *player);
        bool on_respawnplayer(ServerActiveObject *player);
+       bool on_prejoinplayer(std::string name, std::string ip, std::string &reason);
        void on_joinplayer(ServerActiveObject *player);
        void on_leaveplayer(ServerActiveObject *player);
+       void on_cheat(ServerActiveObject *player, const std::string &cheat_type);
 
        void on_playerReceiveFields(ServerActiveObject *player,
                        const std::string &formname,