Save the previous area owner at /change_owner
parent
e8ee792fc6
commit
f809000bde
|
@ -276,6 +276,7 @@ minetest.register_chatcommand("change_owner", {
|
||||||
.." or is not owned by you.", id)
|
.." or is not owned by you.", id)
|
||||||
end
|
end
|
||||||
areas.areas[id].owner = newOwner
|
areas.areas[id].owner = newOwner
|
||||||
|
areas.areas[id].name = areas.areas[id].name .. " " .. S("(by @1)", name)
|
||||||
areas:save()
|
areas:save()
|
||||||
minetest.chat_send_player(newOwner,
|
minetest.chat_send_player(newOwner,
|
||||||
S("@1 has given you control over the area \"@2\" (ID @3).",
|
S("@1 has given you control over the area \"@2\" (ID @3).",
|
||||||
|
|
Loading…
Reference in New Issue