#Connecting to a DB

20 messages · Page 1 of 1 (latest)

fair raven
#

I need a database, can even be key-value, external, a json file, anything. I just need persistent storage for some text.

deep patioBOT
#

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

floral lynx
#

server & player has persistentData

fair raven
#

quick api reference for it ?

#

what method does it have

#

the docs for this mod are ass

floral lynx
#

it’s not a method. it’s a property on server and player

foggy tartan
#

its a map

floral lynx
#

compoundtag

fair raven
floral lynx
#

wait

foggy tartan
#
e.server.persistenData.helloWorld = 123
console.log(e.server.persistenData.helloWorld)
floral lynx
#

persistent*

foggy tartan
#

that

#

xd

fair raven
#

thanks

floral lynx
#

is it really a Map<K, V>?

foggy tartan
#

its a CompoundTag which is just a fancy map

#

acts the same basically

covert dirgeBOT
#

Please close your ticket (with </ticket close:1054771505520717835> or the button atop this thread) once you resolved your issue!
This also helps others that would like to help out, as they don't have to look into this thread to check if it has been resolved by now.

Do you have any other questions regarding your issue? Feel free to ask!
Note: You should create a new post for unrelated issues.