Local strorage(Idea)

From 8x9craft
Jump to: navigation, search

If you can use the storage in hakkun, what do you want to make the program? Dictionaly? Ranking of like something? and History?

solving

We will make the storage to nbt of the Hakkun. nbt is mini storage system in the Minecraft. We will provide to access own nbt of TileHakkun.


sessionStorage

This can be used only while the server is running. In the case of single play, it disappears when play ends

//Set
sessionStorage.setItem("test", "Hello")

//Get
console.log(sessionStorage.getItem("test"))


localStorage

This is a permanent variable. You can use it even after restarting the server

//Set
localStorage.setItem("test", "Hello")

//Get
console.log(localStorage.getItem("test"))

See also