mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-11-28 07:36:50 +01:00
rollback onReportBug to work only for tutors and higher
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user