Add ability to list a certain user's score
This commit is contained in:
parent
ee460930b1
commit
68cea916ce
2 changed files with 55 additions and 37 deletions
|
@ -52,6 +52,13 @@ function ctf_stats.load()
|
|||
ctf.needs_save = true
|
||||
end
|
||||
|
||||
for name, player_stats in pairs(ctf_stats.players) do
|
||||
if not player_stats.score or player_stats.score <= 0 then
|
||||
ctf_stats.players[name] = nil
|
||||
ctf.needs_save = true
|
||||
end
|
||||
end
|
||||
|
||||
ctf_stats.matches = ctf_stats.matches or {
|
||||
wins = {
|
||||
blue = 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue