mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-30 04:21:41 +09:00
Forgot global
This commit is contained in:
@@ -106,7 +106,7 @@ function find_new_rank(player)
|
|||||||
end
|
end
|
||||||
-- to reduce lag if the player is already higher than any time rank then it does not cheak
|
-- to reduce lag if the player is already higher than any time rank then it does not cheak
|
||||||
-- also there play time must be higher than the lowest required for a rank
|
-- also there play time must be higher than the lowest required for a rank
|
||||||
if current_rank.power > ranks.highest_timed_rank.power and player.online_time >= ranks.lowest_time_for_rank.time then
|
if current_rank.power > global.ranks.highest_timed_rank.power and player.online_time >= global.ranks.lowest_time_for_rank.time then
|
||||||
--Loop through rank times
|
--Loop through rank times
|
||||||
for _,rank in pairs(get_ranks()) do
|
for _,rank in pairs(get_ranks()) do
|
||||||
if rank.time and tick_to_min(player.online_time) >= rank.time then table.insert(possible_ranks,string_to_rank(rank)) end
|
if rank.time and tick_to_min(player.online_time) >= rank.time then table.insert(possible_ranks,string_to_rank(rank)) end
|
||||||
|
|||||||
Reference in New Issue
Block a user