Use the beds spawn table for /setspawn.
This commit is contained in:
parent
fdd130c1a5
commit
e43aa31279
3 changed files with 2 additions and 10 deletions
2
chat.lua
2
chat.lua
|
@ -27,7 +27,7 @@ minetest.register_chatcommand("setspawn", {
|
|||
func = function(name, param)
|
||||
local player = minetest.get_player_by_name(name)
|
||||
local pos = player:getpos()
|
||||
fun_caves.db.spawn[name] = pos
|
||||
beds.spawn[name] = pos
|
||||
minetest.chat_send_player(name, 'Your spawn position has been changed.')
|
||||
end,
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue