Added afk times to ranks

This commit is contained in:
Cooldude2606
2018-03-16 19:16:48 +00:00
parent c661245816
commit eb4db09071
2 changed files with 24 additions and 11 deletions

View File

@@ -48,21 +48,24 @@ groups['Root']:add_rank{
tag='[Owner]',
time=nil,
colour={r=170,g=0,b=0},
is_admin = true
is_admin = true,
max_afk_time=false
}
groups['Root']:add_rank{
name='Community Manager',
short_hand='Com Mngr',
tag='[Com Mngr]',
colour={r=150,g=68,b=161},
is_admin = true
is_admin = true,
max_afk_time=false
}
groups['Root']:add_rank{
name='Developer',
short_hand='Dev',
tag='[Dev]',
colour={r=179,g=125,b=46},
is_admin = true
is_admin = true,
max_afk_time=false
}
groups['Admin']:add_rank{
@@ -73,7 +76,8 @@ groups['Admin']:add_rank{
disallow={
'server_command'
},
is_admin = true
is_admin = true,
max_afk_time=false
}
groups['User']:add_rank{
@@ -81,7 +85,8 @@ groups['User']:add_rank{
short_hand='P2W',
tag='[P2W]',
colour={r=233,g=63,b=233},
power=0
power=0,
max_afk_time=120
}
groups['User']:add_rank{
name='Veteran',
@@ -89,7 +94,8 @@ groups['User']:add_rank{
tag='[Veteran]',
time=600,
colour={r=140,g=120,b=200},
power=1
power=1,
max_afk_time=60
}
groups['User']:add_rank{
name='Regular',
@@ -97,7 +103,8 @@ groups['User']:add_rank{
tag='[Regular]',
time=180,
colour={r=24,g=172,b=188},
power=4
power=4,
max_afk_time=30
}
local ranks = Ranking._ranks(true)

View File

@@ -108,7 +108,8 @@ root:add_rank{
tag='[Root]',
colour=defines.color.white,
is_root=true,
is_admin = true
is_admin = true,
max_afk_time=false
}
admin:add_rank{
@@ -117,6 +118,8 @@ admin:add_rank{
tag='[Admin]',
colour={r=233,g=63,b=233},
is_admin = true
,
max_afk_time=false
}
user:add_rank{
@@ -128,7 +131,8 @@ user:add_rank{
'set_auto_launch_rocket',
'change_programmable_speaker_alert_parameters',
'drop_item'
}
},
max_afk_time=60
}
user:add_rank{
name='Guest',
@@ -142,7 +146,8 @@ user:add_rank{
'launch_rocket',
'reset_assembling_machine',
'cancel_research'
}
},
max_afk_time=10
}
jail:add_rank{
@@ -150,7 +155,8 @@ jail:add_rank{
short_hand='Jail',
tag='[Jail]',
colour={r=50,g=50,b=50},
disallow={}
disallow={},
max_afk_time=false
}
function Ranking._auto_edit_ranks()