Removed the need for a spawn priv
parent
40b92312d3
commit
6085e3e27e
2
init.lua
2
init.lua
|
@ -52,7 +52,7 @@ end
|
||||||
|
|
||||||
minetest.register_chatcommand("spawn", {
|
minetest.register_chatcommand("spawn", {
|
||||||
description = "Teleport to the spawn location",
|
description = "Teleport to the spawn location",
|
||||||
privs = {spawn=true},
|
privs = {},
|
||||||
func = function(name, _)
|
func = function(name, _)
|
||||||
local ok = put_player_at_spawn(minetest.get_player_by_name(name))
|
local ok = put_player_at_spawn(minetest.get_player_by_name(name))
|
||||||
if ok then
|
if ok then
|
||||||
|
|
Loading…
Reference in New Issue