Added builder name to irc_whereis

This commit is contained in:
Emerald2 2019-09-17 17:36:53 +12:00 committed by Auke Kok
parent 5a0cbbc844
commit 661e7ebe5c

View File

@ -50,7 +50,8 @@ irc.bot_commands["whereis"].func = function(_, args)
local id = box.box_id local id = box.box_id
local bmeta = db.box_get_meta(id) local bmeta = db.box_get_meta(id)
local box_name = bmeta.meta.box_name local box_name = bmeta.meta.box_name
return true, "Player " .. args .. " is playing box " .. id .. " - \"" .. box_name .. "\"" local builder = bmeta.meta.builder
return true, "Player " .. args .. " is playing box " .. id .. " - \"" .. box_name .. "\" by " .. builder
else else
local pos = player:getpos() local pos = player:getpos()
if pos.x < 1000 and pos.x > -1000 and if pos.x < 1000 and pos.x > -1000 and