mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 19:45:22 +09:00
Added is_spectator to ranks
This commit is contained in:
@@ -139,6 +139,7 @@ function Ranking.give_rank(player,rank,by_player,tick)
|
||||
player.tag = rank.tag
|
||||
if not old_rank.group.name == 'Jail' then Ranking._presets().old[player.index] = rank.name end
|
||||
player.admin = rank.is_admin or false
|
||||
player.spectator = rank.is_spectator or false
|
||||
if defines.events.rank_change then
|
||||
script.raise_event(defines.events.rank_change,{
|
||||
name=defines.events.rank_change,
|
||||
|
||||
@@ -108,7 +108,8 @@ root:add_rank{
|
||||
tag='[Root]',
|
||||
colour=defines.color.white,
|
||||
is_root=true,
|
||||
is_admin = true,
|
||||
is_admin=true,
|
||||
is_spectator=true,
|
||||
base_afk_time=false
|
||||
}
|
||||
|
||||
@@ -117,8 +118,8 @@ admin:add_rank{
|
||||
short_hand='Admin',
|
||||
tag='[Admin]',
|
||||
colour={r=233,g=63,b=233},
|
||||
is_admin = true
|
||||
,
|
||||
is_admin=true,
|
||||
is_spectator=true,
|
||||
base_afk_time=false
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user