1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

Add 'on_prejoinplayer' callback

This commit is contained in:
kaeza 2013-12-12 04:51:35 -02:00 committed by ShadowNinja
parent 76036abdb0
commit 33de69a173
5 changed files with 36 additions and 0 deletions

View file

@ -1175,6 +1175,9 @@ minetest.register_on_respawnplayer(func(ObjectRef))
^ Called when player is to be respawned
^ Called _before_ repositioning of player occurs
^ return true in func to disable regular player placement
minetest.register_on_prejoinplayer(func(name, ip))
^ Called before a player joins the game
^ If it returns a string, the player is disconnected with that string as reason
minetest.register_on_joinplayer(func(ObjectRef))
^ Called when a player joins the game
minetest.register_on_leaveplayer(func(ObjectRef))