Corrected dependencies

This commit is contained in:
Cooldude2606
2018-06-07 22:28:42 +01:00
parent 5a31933421
commit 13c5961d39
3 changed files with 12 additions and 6 deletions

View File

@@ -133,8 +133,8 @@ function Ranking.get_rank(mixed)
-- if it is a player name/index, then get player rank; if it is a rank name, get that rank; if it is server or root; return root rank; else nil
_return = game and game.players[mixed] and ranks[game.players[mixed].permission_group.name]
or table.autokey(ranks,mixed) and table.autokey(ranks,mixed)
or string.contains(mixed,'server') and Ranking.get_rank(Ranking.meta.root)
or string.contains(mixed,'root') and Ranking.get_rank(Ranking.meta.root)
or string.find(mixed,'server') and Ranking.get_rank(Ranking.meta.root)
or string.find(mixed,'root') and Ranking.get_rank(Ranking.meta.root)
or nil
end
return _return