Sponge economy and custom NPC's

this is kinda a two part question. for one, is it possible to use custom NPC’s to get a players wallet balance, give and take money, and keep dialogs from continuing on unless the balance is above a certain amount using spongeforge?

and if it is, could someone provide an actual code example on how to do it? i’ve been trying to figure it out for some time, cause i would like to implement it in a number of quests, but i’ve yet to figure it out. thanks!

1 Like

You can just spawn EntityTypes.HUMAN. Use listeners for the other stuff.