Nexa Developer Docs

Add a Data Store.

How to add a datastore.

Create a Data Store

Create a Data Store to store user data.

Method

public Boolean addDataStore(String key, String value)

Returns

A Boolean, True if success, False if not.

Parameters

ParameterTypeDescription
keyStringThe Key / Name of the data store.
valueStringThe value of the data store.

Example

boolean addedDataStore = nexaAPI.addDataStore("Player1Coins", "100") // convert this to an int later, we only support strings.

System.out.println(addedDataStore)

On this page