Script work 100%. But maybe you should do a command indicating that the player no longer have afk. Exemple : /afk => Utilisatrice is now afk. When i type /afk again => Utilisatrice do not have afk. Good Idea Done: spawn = {x = 50, y = 1, z = 92} minetest.register_on_chat_message(function(name, mess...