Save the previous area owner at /change_owner

master
Maksim 2022-08-26 15:01:05 +03:00
parent e8ee792fc6
commit f809000bde
1 changed files with 1 additions and 0 deletions

View File

@ -276,6 +276,7 @@ minetest.register_chatcommand("change_owner", {
.." or is not owned by you.", id)
end
areas.areas[id].owner = newOwner
areas.areas[id].name = areas.areas[id].name .. " " .. S("(by @1)", name)
areas:save()
minetest.chat_send_player(newOwner,
S("@1 has given you control over the area \"@2\" (ID @3).",