Sign In Register

How can we help you today?

Start a new topic

Access built-in currency signup bonus from cloud code

For custom currencies I can use Spark.getConfig().getCurrency("BLA").getSignupBonus()


How do I do this for built-in currencies? (those managed via game edit menu)

1 Comment

Hi Ian,


You can get these values by using Spark.getConfig().getCurrencies(). This will return an array of SparkCurrency objects. You'll need to loop over this to get the values you need.


Regards,

Liam

Login to post a comment