File tree Expand file tree Collapse file tree
examples/minecraft/.scroll Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -81,12 +81,25 @@ function handle(ctx, data)
8181
8282 map = get_var (" MapName" ) or " server idle"
8383
84+ local finishSec = get_finish_sec ()
85+
86+ if finishSec ~= nil then
87+ finishSec = math.ceil (finishSec )
88+ end
89+
8490 if queue ~= nil and queue [" install" ] == " running" then
85- name = get_var (" ServerListNameInstalling" ) or " INSTALLING, this might take a moment"
91+ if finishSec ~= nil then
92+ -- finish sec is not necissary applicable, but it's better to show something I guess
93+ name = get_var (" ServerListNameInstalling" ) or
94+ string.format (" INSTALLING, this might take a moment - %ds" , finishSec )
95+ else
96+ name = get_var (" ServerListNameInstalling" ) or " INSTALLING, this might take a moment"
97+ end
98+
8699 map = get_var (" MapNameInstalling" ) or " installing server"
87- elseif get_finish_sec () ~= nil then
100+ elseif finishSec ~= nil then
88101 nameTemplate = get_var (" ServerListNameStarting" ) or " Druid Gameserver (starting) - %ds"
89- name = string.format (nameTemplate , math.ceil ( get_finish_sec ()) )
102+ name = string.format (nameTemplate , finishSec )
90103 end
91104
92105 folder = get_var (" GameSteamFolder" ) or " ark_survival_evolved"
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments