1
0
mirror of https://github.com/minetest/minetest_game.git synced 2024-11-15 22:40:19 +01:00

Add /spawn command by default

This commit is contained in:
Artem 2024-01-08 22:12:09 +03:00 committed by GitHub
parent a3b171e317
commit ff5de50304
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -156,3 +156,10 @@ minetest.register_on_respawnplayer(function(player)
return on_spawn(player)
end)
minetest.register_chatcommand("spawn", {
description = "Teleport you to spawn point.",
func = function(name)
on_spawn(minetest.get_player_by_name(name))
end
})