mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-30 04:21:41 +09:00
Added is_spectator to ranks
This commit is contained in:
@@ -49,6 +49,7 @@ groups['Root']:add_rank{
|
|||||||
time=nil,
|
time=nil,
|
||||||
colour={r=170,g=0,b=0},
|
colour={r=170,g=0,b=0},
|
||||||
is_admin = true,
|
is_admin = true,
|
||||||
|
is_spectator=true,
|
||||||
base_afk_time=false
|
base_afk_time=false
|
||||||
}
|
}
|
||||||
groups['Root']:add_rank{
|
groups['Root']:add_rank{
|
||||||
@@ -57,6 +58,7 @@ groups['Root']:add_rank{
|
|||||||
tag='[Com Mngr]',
|
tag='[Com Mngr]',
|
||||||
colour={r=150,g=68,b=161},
|
colour={r=150,g=68,b=161},
|
||||||
is_admin = true,
|
is_admin = true,
|
||||||
|
is_spectator=true,
|
||||||
base_afk_time=false
|
base_afk_time=false
|
||||||
}
|
}
|
||||||
groups['Root']:add_rank{
|
groups['Root']:add_rank{
|
||||||
@@ -65,6 +67,7 @@ groups['Root']:add_rank{
|
|||||||
tag='[Dev]',
|
tag='[Dev]',
|
||||||
colour={r=179,g=125,b=46},
|
colour={r=179,g=125,b=46},
|
||||||
is_admin = true,
|
is_admin = true,
|
||||||
|
is_spectator=true,
|
||||||
base_afk_time=false
|
base_afk_time=false
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -77,6 +80,7 @@ groups['Admin']:add_rank{
|
|||||||
'server_command'
|
'server_command'
|
||||||
},
|
},
|
||||||
is_admin = true,
|
is_admin = true,
|
||||||
|
is_spectator=true,
|
||||||
base_afk_time=false
|
base_afk_time=false
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -86,6 +90,7 @@ groups['User']:add_rank{
|
|||||||
tag='[P2W]',
|
tag='[P2W]',
|
||||||
colour={r=233,g=63,b=233},
|
colour={r=233,g=63,b=233},
|
||||||
power=0,
|
power=0,
|
||||||
|
is_spectator=true,
|
||||||
base_afk_time=120
|
base_afk_time=120
|
||||||
}
|
}
|
||||||
groups['User']:add_rank{
|
groups['User']:add_rank{
|
||||||
|
|||||||
@@ -139,6 +139,7 @@ function Ranking.give_rank(player,rank,by_player,tick)
|
|||||||
player.tag = rank.tag
|
player.tag = rank.tag
|
||||||
if not old_rank.group.name == 'Jail' then Ranking._presets().old[player.index] = rank.name end
|
if not old_rank.group.name == 'Jail' then Ranking._presets().old[player.index] = rank.name end
|
||||||
player.admin = rank.is_admin or false
|
player.admin = rank.is_admin or false
|
||||||
|
player.spectator = rank.is_spectator or false
|
||||||
if defines.events.rank_change then
|
if defines.events.rank_change then
|
||||||
script.raise_event(defines.events.rank_change,{
|
script.raise_event(defines.events.rank_change,{
|
||||||
name=defines.events.rank_change,
|
name=defines.events.rank_change,
|
||||||
|
|||||||
@@ -108,7 +108,8 @@ root:add_rank{
|
|||||||
tag='[Root]',
|
tag='[Root]',
|
||||||
colour=defines.color.white,
|
colour=defines.color.white,
|
||||||
is_root=true,
|
is_root=true,
|
||||||
is_admin = true,
|
is_admin=true,
|
||||||
|
is_spectator=true,
|
||||||
base_afk_time=false
|
base_afk_time=false
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -117,8 +118,8 @@ admin:add_rank{
|
|||||||
short_hand='Admin',
|
short_hand='Admin',
|
||||||
tag='[Admin]',
|
tag='[Admin]',
|
||||||
colour={r=233,g=63,b=233},
|
colour={r=233,g=63,b=233},
|
||||||
is_admin = true
|
is_admin=true,
|
||||||
,
|
is_spectator=true,
|
||||||
base_afk_time=false
|
base_afk_time=false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user