summaryrefslogtreecommitdiff
path: root/api.lua
diff options
context:
space:
mode:
authorrubenwardy <anjayward@gmail.com>2014-05-02 19:11:21 +0100
committerrubenwardy <anjayward@gmail.com>2014-05-02 19:11:21 +0100
commit8bd3658d9ee363c55225c63f867a8ebf70c44b6e (patch)
treee540f84f5eca80259ab56f026f937800f8e96bf7 /api.lua
parent8adf859127a3cf3218811c3e6d9ff4b6a3aff1a8 (diff)
first word award and bug fixes
Diffstat (limited to 'api.lua')
-rw-r--r--api.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/api.lua b/api.lua
index b0bf068..71ddd2f 100644
--- a/api.lua
+++ b/api.lua
@@ -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