mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-29 04:06:39 +09:00
Fixed Jail and server.interface
This commit is contained in:
@@ -17,7 +17,7 @@ local playerInfo = function(player,frame)
|
||||
end
|
||||
|
||||
local getPlayers = function()
|
||||
local rtn = {{{r=233,g=63,b=233},'Admin',{}},{{r=255,g=159,b=27},'',{}}}
|
||||
local rtn = {{{r=233,g=63,b=233},'Admin',{},true},{{r=255,g=159,b=27},'',{},false}}
|
||||
for _,player in pairs(game.connected_players) do
|
||||
if player.admin then table.insert(rtn[2][3],player)
|
||||
else table.insert(rtn[1][3],player) end
|
||||
|
||||
@@ -4,9 +4,12 @@ script.on_event(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)
|
||||
table.insert(rtn,{role.colour,role.short_hand,role:get_players(true),role.not_reportable})
|
||||
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