mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-30 04:21:41 +09:00
Added warn to player list
This commit is contained in:
15
old/modules/DONE/Guis/playerList/src/ranking.lua
Normal file
15
old/modules/DONE/Guis/playerList/src/ranking.lua
Normal 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
|
||||
Reference in New Issue
Block a user