rollback onReportBug to work only for tutors and higher

This commit is contained in:
ErikasKontenis 2020-01-12 11:33:17 +02:00
parent 858a27acc8
commit 391970ea79

View File

@ -92,6 +92,10 @@ function Player:onMoveCreature(creature, fromPosition, toPosition)
end end
function Player:onReportBug(message, position, category) function Player:onReportBug(message, position, category)
if self:getAccountType() == ACCOUNT_TYPE_NORMAL then
return false
end
local name = self:getName() local name = self:getName()
local file = io.open("data/reports/bugs/" .. name .. " report.txt", "a") local file = io.open("data/reports/bugs/" .. name .. " report.txt", "a")