From a4fa4c21ef30adcf031ed61ed464fccbd041a226 Mon Sep 17 00:00:00 2001 From: Freeman Date: Sat, 28 Oct 2023 23:07:33 +0200 Subject: [PATCH] function emeraldbank.get_emeralds(name) --- functions.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/functions.lua b/functions.lua index 9b4b499..f176fd3 100644 --- a/functions.lua +++ b/functions.lua @@ -21,6 +21,11 @@ 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) if not player then return false end local meta = player:get_meta()