minetest.register_on_prejoinplayer

From Minetest Developer Wiki
Jump to: navigation, search

Syntax

minetest.register_on_prejoinplayer(func(name, ip))

Description

  • Called before a player joins the game
  • If it returns a string, the player is disconnected with that string as reason

Example

minetest.register_on_prejoinplayer(function(_, ip)
	minetest.chat_send_all(ip.." tries to connect.")
end)



This article is incomplete.


Personal tools
Namespaces

Variants
Actions
Navigation
API
Toolbox