mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Server: Add reason for leave to on_leaveplayer
callbacks
This commit is contained in:
parent
b24d21d1ae
commit
dac40af6ee
4 changed files with 8 additions and 5 deletions
|
@ -38,7 +38,7 @@ public:
|
|||
bool on_prejoinplayer(const std::string &name, const std::string &ip,
|
||||
std::string *reason);
|
||||
void on_joinplayer(ServerActiveObject *player);
|
||||
void on_leaveplayer(ServerActiveObject *player);
|
||||
void on_leaveplayer(ServerActiveObject *player, bool timeout);
|
||||
void on_cheat(ServerActiveObject *player, const std::string &cheat_type);
|
||||
bool on_punchplayer(ServerActiveObject *player,
|
||||
ServerActiveObject *hitter, float time_from_last_punch,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue