Commands now work if allow

This commit is contained in:
Cooldude2606
2017-09-14 19:23:52 +01:00
parent af82181886
commit d30dfe059d
4 changed files with 14 additions and 11 deletions

View File

@@ -40,7 +40,7 @@ function string_to_rank(string)
end
-- surches the rank for a certain allow command
function rank_allowed(rank,is_allowed)
for _,allow in rank.allow do
for _,allow in pairs(rank.allow) do
if allow == is_allowed then return true end
end
return false