mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Support static_spawnpoint setting
This commit is contained in:
parent
8ed74a3429
commit
93cdc9b9dc
5 changed files with 69 additions and 1 deletions
|
@ -322,7 +322,7 @@ minetest.register_chatcommand("set", {
|
|||
privs = {server=true},
|
||||
func = function(name, param)
|
||||
local arg, setname, setvalue = string.match(param, "(-[n]) ([^ ]+) (.+)")
|
||||
if arg and arg == "n" and setname and setvalue then
|
||||
if arg and arg == "-n" and setname and setvalue then
|
||||
minetest.setting_set(setname, setvalue)
|
||||
minetest.chat_send_player(name, setname.." = "..setvalue)
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue