Sign In Register

How can we help you today?

Start a new topic

Currencies

I saw that it was now possible to defines currencies.

Good, better than the 6 positions.

But then, how to modifiy them, adding or substracting values ?

The SparkCurrency doesn't have such functions...


Thanks :)

Hi Eric,


You can see how this is done in our documentation here. I've also posted the examples below for you.


//credit
Spark.getPlayer().credit("shortCode", amount);

//debit
Spark.getPlayer().debit("shortCode", amount);

//getBalance
Spark.getPlayer().getBalance("shortCode");

 


Regards,

Liam

Login to post a comment