summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/APIDump/main_APIDump.lua
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-06-05 10:34:13 +0200
committerMattes D <github@xoft.cz>2015-06-05 10:34:13 +0200
commit99b182b4bea0e845ca4c207f4ba6aad7ebbe626a (patch)
tree88576b0757d485ff9849d44bb08994eb9b859ca6 /MCServer/Plugins/APIDump/main_APIDump.lua
parentProvide some BuildInfo even for non-CI builds. (diff)
downloadcuberite-99b182b4bea0e845ca4c207f4ba6aad7ebbe626a.tar
cuberite-99b182b4bea0e845ca4c207f4ba6aad7ebbe626a.tar.gz
cuberite-99b182b4bea0e845ca4c207f4ba6aad7ebbe626a.tar.bz2
cuberite-99b182b4bea0e845ca4c207f4ba6aad7ebbe626a.tar.lz
cuberite-99b182b4bea0e845ca4c207f4ba6aad7ebbe626a.tar.xz
cuberite-99b182b4bea0e845ca4c207f4ba6aad7ebbe626a.tar.zst
cuberite-99b182b4bea0e845ca4c207f4ba6aad7ebbe626a.zip
Diffstat (limited to '')
-rw-r--r--MCServer/Plugins/APIDump/main_APIDump.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/MCServer/Plugins/APIDump/main_APIDump.lua b/MCServer/Plugins/APIDump/main_APIDump.lua
index f1966d013..543a299af 100644
--- a/MCServer/Plugins/APIDump/main_APIDump.lua
+++ b/MCServer/Plugins/APIDump/main_APIDump.lua
@@ -156,7 +156,10 @@ end
--- Returns the timestamp in HTML format
-- The timestamp will be inserted to all generated HTML files
local function GetHtmlTimestamp()
- return string.format("<div id='timestamp'>Generated on %s</div>", os.date("%Y-%m-%d %H:%M:%S"))
+ return string.format("<div id='timestamp'>Generated on %s, Build ID %s, Commit %s</div>",
+ os.date("%Y-%m-%d %H:%M:%S"),
+ cRoot:GetBuildID(), cRoot:GetBuildCommitID()
+ )
end