first word award and bug fixes

This commit is contained in:
rubenwardy
2014-05-02 19:11:21 +01:00
parent 8adf859127
commit 8bd3658d9e
3 changed files with 27 additions and 15 deletions

View File

@ -64,6 +64,7 @@ function awards.assertPlayer(playern)
awards.tbv(awards.players[playern], "place")
awards.tbv(awards.players[playern], "count")
awards.tbv(awards.players[playern], "deaths", 0)
awards.tbv(awards.players[playern], "chats", 0)
end
-- Load files
@ -148,7 +149,7 @@ end
-- award - the name of the award to give
function awards.give_achievement(name,award)
-- Access Player Data
local data=awards.players[name]
local data = awards.players[name]
-- Perform checks
if not data then