mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-04-30 01:29:21 +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
|
||||
|
||||
function Player:onReportBug(message, position, category)
|
||||
if self:getAccountType() == ACCOUNT_TYPE_NORMAL then
|
||||
return false
|
||||
end
|
||||
|
||||
local name = self:getName()
|
||||
local file = io.open("data/reports/bugs/" .. name .. " report.txt", "a")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user