Fixed Temp Ban

This commit is contained in:
Cooldude2606
2018-04-14 13:08:55 +01:00
parent 241b0e0e76
commit a204194bdb

View File

@@ -123,7 +123,7 @@ local function give_punishment(player,by_player,reason)
_reports().actions[player.name] = actions.kick
Admin.kick(player,by_player,'Too Many Warnings: '..warnings-(take_action-1)..' Also: '..reason)
elseif punishment[1] == 'temp-ban' then
_reports().actions[player.name] = actions.temp
--_reports().actions[player.name] = actions.temp -- see Admin.temp-ban
Admin.temp_ban(player,by_player,'Too Many Warnings: '..warnings-(take_action-1)..' Also: '..reason)
elseif punishment[1] == 'ban' then
_reports().actions[player.name] = actions.ban