Persist player skins set with /character
This commit is contained in:
parent
82772ce999
commit
9a9b0bb85f
1 changed files with 7 additions and 1 deletions
|
|
@ -38,7 +38,13 @@ end)
|
|||
|
||||
minetest.register_chatcommand("character", {
|
||||
func = function(name, args)
|
||||
ns.set_character(rgt.players[name], args)
|
||||
local m = rgt.players[name]
|
||||
if ns.characters[args] then
|
||||
m.object:get_meta():set_string("character", args)
|
||||
ns.set_character(m, args)
|
||||
else
|
||||
tell(name, "That character does not exist.")
|
||||
end
|
||||
end
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue