diff options
author | kaeza <kaeza@users.sf.net> | 2013-12-12 04:51:35 -0200 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2013-12-12 13:42:14 -0500 |
commit | 33de69a173a3646d8f5b9bf91b3e48d76cd40ae6 (patch) | |
tree | c5eeb56ed20b435e9fabf52f80bdee893e580df1 /doc | |
parent | 76036abdb0d9cb2c971e5a69331c77872d38c56f (diff) | |
download | minetest-33de69a173a3646d8f5b9bf91b3e48d76cd40ae6.tar.gz minetest-33de69a173a3646d8f5b9bf91b3e48d76cd40ae6.tar.bz2 minetest-33de69a173a3646d8f5b9bf91b3e48d76cd40ae6.zip |
Add 'on_prejoinplayer' callback
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index cc8044fa9..ae7144442 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -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)) |