minetest.register_on_leaveplayer

From Minetest Developer Wiki
Jump to: navigation, search

Syntax

Description

Called when a player leaves the game.

Example

minetest.register_on_leaveplayer(function(player)
	minetest.chat_send_all(player:get_player_name().." has left this awesome game.")
end)
Personal tools
Namespaces

Variants
Actions
Navigation
API
Toolbox