command (Minecraft command):
trigger:
player is holding a (Item/Items of your choice)
set {bank::%uuid of player%} to sum({bank::%uuid of player%}, 1)
send "stored emeralds are now at: &a%{bank::%uuid of player%}% &aItems"
remove 1 of player's tool from player's tool
command (Minecraft command):
trigger:
send "&bStored item count: &a{Bank::%uuid of player%} &aItems&6."
command (Minecraft command):
trigger:
send "&6attempting to withdraw Item..."
if {emebank::%uuid of player%} <= 0:
send "&6Event failed, Too little of Item in bank."
else:
give 1 Item to player
set {bank::%uuid of player%} to sum({bank::%uuid of player%}, -1)
send "&6Event succeeded, you now have: &a%{bank::%uuid of player%}% &aItems&6."
This is code to enable for your currency system, it works for items.
To use, use skript.
(MAY NEED ANOTHER UTILITY IF IT DOESN'T WORK)