mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-28 20:05:22 +09:00
Most bugs caught
This commit is contained in:
@@ -99,4 +99,4 @@ script.on_event(defines.events.on_gui_click,function(event)
|
||||
end
|
||||
end)
|
||||
|
||||
script.on_event(defines.events.on_player_joined_game,Sync.info_gui)
|
||||
script.on_event(defines.events.on_player_joined_game,function(event) Sync.info_gui(event) end)
|
||||
@@ -36,7 +36,9 @@ end
|
||||
-- Adds a caption to the info gui that shows the rank given to the player
|
||||
if Sync.add_to_gui then
|
||||
Sync.add_to_gui(function(player,frame)
|
||||
return 'You have been assigned the rank \''..Role.get_highest(player).name..'\''
|
||||
local names = {}
|
||||
for _,role in pairs(Role.get(player)) do table.insert(names,role.name) end
|
||||
return 'You have been assigned the roles: '..table.concat(names,', ')
|
||||
end)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user