mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-30 20:41:41 +09:00
Merge branch 'wip' into testing
This commit is contained in:
@@ -69,7 +69,7 @@ function commands.get_commands(player)
|
|||||||
if not player then return commands end
|
if not player then return commands end
|
||||||
local rank = Ranking.get_rank(player)
|
local rank = Ranking.get_rank(player)
|
||||||
for name,data in pairs(command_data) do
|
for name,data in pairs(command_data) do
|
||||||
if Ranking.rank_allowed(rank,name) then table.insert(commands,data) end
|
if rank:allowed(name) then table.insert(commands,data) end
|
||||||
end
|
end
|
||||||
return commands
|
return commands
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user