Add some better logging for these infrequent events.
This commit is contained in:
parent
7a69c6c733
commit
f274254b34
@ -189,6 +189,7 @@ function boxes.player_success(player)
|
||||
if sid == conf.tutorial.series then
|
||||
player:set_attribute("tutorial_completed", 1)
|
||||
announce.all(name .. " completed the tutorial!")
|
||||
announce.admins(name .. " completed the tutorial!")
|
||||
-- reward: create priv
|
||||
local privs = minetest.get_player_privs(name)
|
||||
privs.create = true
|
||||
|
@ -764,6 +764,7 @@ function callback.boxes_create(player, fields, context)
|
||||
if is_admin or (box_get_status(id) == db.STATUS_EDITING and is_builder(id)) then
|
||||
minetest.chat_send_player(name, "Submitting box " .. tostring(id))
|
||||
announce.all(name .. " submits box " .. tostring(id))
|
||||
announce.admins(name .. " submits box " .. tostring(id))
|
||||
box_set_status(id, db.STATUS_SUBMITTED)
|
||||
end
|
||||
return true
|
||||
@ -772,6 +773,7 @@ function callback.boxes_create(player, fields, context)
|
||||
if is_admin and box_get_status(id) == db.STATUS_SUBMITTED then
|
||||
minetest.chat_send_player(name, "Accepting box " .. tostring(id))
|
||||
announce.all(name .. " accepts box " .. tostring(id) .. "!")
|
||||
announce.admins(name .. " accepts box " .. tostring(id) .. "!")
|
||||
box_set_status(id, db.STATUS_ACCEPTED)
|
||||
end
|
||||
return true
|
||||
@ -780,6 +782,7 @@ function callback.boxes_create(player, fields, context)
|
||||
if is_builder(id) and box_get_status(id) == db.STATUS_SUBMITTED then
|
||||
minetest.chat_send_player(name, "Retracted box " .. tostring(id))
|
||||
announce.all(name .. " retracts box " .. tostring(id))
|
||||
announce.admins(name .. " retracts box " .. tostring(id))
|
||||
box_set_status(id, db.STATUS_EDITING)
|
||||
end
|
||||
return true
|
||||
@ -788,6 +791,7 @@ function callback.boxes_create(player, fields, context)
|
||||
if is_admin and box_get_status(id) == db.STATUS_SUBMITTED then
|
||||
minetest.chat_send_player(name, "Rejecting box " .. tostring(id))
|
||||
announce.all(name .. " rejects box " .. tostring(id))
|
||||
announce.admins(name .. " rejects box " .. tostring(id))
|
||||
box_set_status(id, db.STATUS_EDITING)
|
||||
end
|
||||
return true
|
||||
|
Loading…
x
Reference in New Issue
Block a user