diff --git a/lb_store.lua b/lb_store.lua index 488a297..9de7551 100644 --- a/lb_store.lua +++ b/lb_store.lua @@ -381,6 +381,18 @@ COM_AddCommand("lb_known_maps", function(player, map) end end) +COM_AddCommand("lb_download_live_records", function(player, filename) + if not filename then + CONS_Printf(player, "Usage: lb_download_live_records ") + return + end + + if filename:sub(#filename-3) != ".txt" then + filename = $..".txt" + end + dumpStoreToFile(filename, LiveStore) +end, COM_LOCAL) + -- Load the livestore if isserver then LiveStore = loadStoreFile(LEADERBOARD_FILE)