minetest.register_on_respawnplayer

From Minetest Developer Wiki
Jump to: navigation, search

Syntax

Description

Called when player is to be respawned. Called before repositioning of player occurs. return true in function to disable regular player placement.

minetest.register_on_respawnplayer(function(player)
	minetest.chat_send_all(player:get_player_name().." respawned.")
end)
Personal tools
Namespaces

Variants
Actions
Navigation
API
Toolbox