Added warn to player list

This commit is contained in:
Cooldude2606
2019-05-26 22:16:47 +01:00
parent 77fc58c8a0
commit 3c604c3046
21 changed files with 33 additions and 6 deletions

View File

@@ -0,0 +1,15 @@
local Role = require('ExpGamingCore.Role')
Event.add(defines.events.on_role_change,self.update)
return function()
local rtn = {}
local default = {}
for _,role_name in pairs(Role.order) do
local role = Role.get(role_name,true)
if role.is_default then default = {role.colour,role.short_hand,role:get_players(true),role.not_reportable}
else table.insert(rtn,{role.colour,role.short_hand,role:get_players(true),role.not_reportable}) end
end
table.insert(rtn,default)
return rtn
end