mirror of
https://gitlab.com/rubenwardy/awards.git
synced 2025-03-19 06:12:36 +01:00
Add assert to awards.player()
This commit is contained in:
1
api.lua
1
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
|
||||
|
Reference in New Issue
Block a user