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:
parent
a3b171e317
commit
ff5de50304
|
@ -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
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue
Block a user