mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-01-23 08:20:21 +01:00
Flush both graveyards when using chatcommand
This commit is contained in:
parent
5c0525d221
commit
facc0f4b5a
@ -59,6 +59,7 @@ minetest.register_chatcommand("clear_graveyard", {
|
|||||||
func = function(name, param)
|
func = function(name, param)
|
||||||
local grave_inv = minetest.get_inventory({type = "detached", name = name .. "_graveyard"})
|
local grave_inv = minetest.get_inventory({type = "detached", name = name .. "_graveyard"})
|
||||||
grave_inv:set_list("graveyard", {})
|
grave_inv:set_list("graveyard", {})
|
||||||
|
minetest.get_player_by_name(name):get_inventory():set_list("graveyard", {})
|
||||||
return true, "Graveyard flushed"
|
return true, "Graveyard flushed"
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user