mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-04-30 09:39:20 +02:00
rollback onReportBug to work only for tutors and higher
This commit is contained in:
parent
858a27acc8
commit
391970ea79
@ -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")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user