mirror of
https://gitlab.com/rubenwardy/awards.git
synced 2024-12-27 11:10:41 +01:00
parent
3fc12eb689
commit
08f654cf94
4
api.lua
4
api.lua
@ -67,8 +67,6 @@ local function convert_data()
|
||||
|
||||
awards.players[name] = data
|
||||
end
|
||||
|
||||
print(dump(awards.players))
|
||||
end
|
||||
|
||||
function awards.load()
|
||||
@ -162,7 +160,6 @@ function awards.register_trigger(tname, tdef)
|
||||
assert(player and player.is_player and player:is_player())
|
||||
local name = player:get_player_name()
|
||||
local data = awards.player(name)
|
||||
print(dump(data))
|
||||
|
||||
-- Increment counter
|
||||
local currentVal = (data[tname] or 0) + 1
|
||||
@ -225,7 +222,6 @@ function awards.register_trigger(tname, tdef)
|
||||
assert(player and player.is_player and player:is_player() and key)
|
||||
local name = player:get_player_name()
|
||||
local data = awards.player(name)
|
||||
print(dump(data))
|
||||
|
||||
-- Increment counter
|
||||
data[tname] = data[tname] or {}
|
||||
|
Loading…
Reference in New Issue
Block a user