mirror of
https://codeberg.org/usrib/emeraldbank.git
synced 2025-01-03 20:07:32 +01:00
function emeraldbank.get_emeralds(name)
This commit is contained in:
parent
f36651701e
commit
a4fa4c21ef
@ -21,6 +21,11 @@
|
|||||||
|
|
||||||
local S = core.get_translator(core.get_current_modname())
|
local S = core.get_translator(core.get_current_modname())
|
||||||
|
|
||||||
|
function emeraldbank.get_emeralds(name)
|
||||||
|
atm.read_account(name)
|
||||||
|
return atm.balance[name]
|
||||||
|
end
|
||||||
|
|
||||||
function emeraldbank.add_emeralds(player, num)
|
function emeraldbank.add_emeralds(player, num)
|
||||||
if not player then return false end
|
if not player then return false end
|
||||||
local meta = player:get_meta()
|
local meta = player:get_meta()
|
||||||
|
Loading…
Reference in New Issue
Block a user