mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-31 04:51:40 +09:00
Fixed Bug In Reports.lua
This commit is contained in:
@@ -150,7 +150,7 @@ function Admin.report(player,by_player,reason)
|
|||||||
local player, by_player_name = valid_players(player,by_player)
|
local player, by_player_name = valid_players(player,by_player)
|
||||||
if not player or Ranking.get_rank(player):allowed('no-report') then return end
|
if not player or Ranking.get_rank(player):allowed('no-report') then return end
|
||||||
if Admin.is_banned(by_player) or Ranking.get_group(by_player).name == 'Jail' then return end
|
if Admin.is_banned(by_player) or Ranking.get_group(by_player).name == 'Jail' then return end
|
||||||
if rank:allowed('varified') then
|
if Ranking.get_rank(by_player):allowed('varified') then
|
||||||
_reports().varified[player.name] = _reports().varified[player.name] or {}
|
_reports().varified[player.name] = _reports().varified[player.name] or {}
|
||||||
local reports = _reports().varified[player.name]
|
local reports = _reports().varified[player.name]
|
||||||
for _,value in pairs(reports) do
|
for _,value in pairs(reports) do
|
||||||
|
|||||||
Reference in New Issue
Block a user