diff --git a/api.lua b/api.lua index a35d3e1..76ab33d 100644 --- a/api.lua +++ b/api.lua @@ -91,6 +91,7 @@ function awards.load() end function awards.player(name) + assert(type(name) == "string") local data = awards.players[name] or {} awards.players[name] = data data.name = data.name or name