#persistent data in client.init

11 messages · Page 1 of 1 (latest)

waxen spade
#

What do I use to read and write persistent data on the client during the client.init event?

raven moatBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

waxen spade
#

I can't seem to find any documentation for persistent data

waxen spade
#

??tips

magic roostBOT
# waxen spade ??tips

What is persistent data and how to use it?
Persistent data is an object which exists on players, levels and servers!
It's super useful and easy to use!
Here's a simple example:

event.player.persistentData.myCoolNumber = 15
console.log(event.player.persistentData.myCoolNumber + 6) // 21
waxen spade
#

Is there any way to store something in options.txt instead?

raven moatBOT
#

Ticket re-opened!

waxen spade
#

persistent data in client.init

#

I'm going to reopen this since I can't find an answer anywhere

twin axle
#

you can use JsonIO