skript-storage: Whole new way to store data!

Addon skript-storage: Whole new way to store data! 1.2.1

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Supported Minecraft Versions
  1. 1.7
  2. 1.8
  3. 1.9
  4. 1.10
  5. 1.11
  6. 1.12
  7. 1.13
  8. 1.14
  9. 1.15
  10. 1.16
  11. 1.17
skript-storage was made to handle the most used file-storage system and use them easily with Skript. In addition to YAML, you can also manage JSON and TOML files as you like, since all of them have multiple advantages and disadvantages.

File Types Storage

skript-storage allow three main file storage type:


  • YAML (valid extension: .yml)
  • JSON (valid extension: .json)
  • TOML (valid extension: .toml)

All of them have different advantages and disadvantages which will allow using one or the other for this or that type of storage.


Cross-version Data

skript-storage supports all of these three types, and the best part is that you don’t have to change anything in your code! Every node will be represented in the same way and every expression will be supported with these types.

Only headers comments will be available for YAML and not for JSON neither TOML.

skript-storage determine the file type with its extension (see the second part), and you cannot make a file with another extension (skript-storage will be unable to parse it)


Example

Simple example using shortcut:
Code:
create shortcut for "plugins/Test/config.yml" as "config"


set value "First.Second" from "config" to "Hello World!"
set value "First.Third.Fourth" from "config" to 50
set value "First.Lastly" from "config" to 30
set value "SecondMain" from "config" to "Welcome!"

set value "Node.Path" from "config" to red # Color
set value "Node.Path" from "config" to now # Date
set value "Node.Path" from "config" to 20 minutes # Timespan
Advanced example using queue:
Code:
create shortcut for "plugins/Test/test.json" as "config"
start queue for "config"
       
set value "test" of "config" to true
set value "Hello.World" of "config" to 30
       
save queue for "config"
  • Like
Reactions: Ayham Alali
Author
SkyCraft78
Downloads
1,637
Views
1,637
First release
Last update
Rating
3.00 star(s) 2 ratings

Latest updates

  1. Small fixes ...

    This very small update brings fix the #1 issue, where lists were taken as Java lists and not...
  2. Queue system update!

    This pretty big update implemented whole new features: Queues! Queues are made for huge data...

Latest reviews

This addon has so much potential. But the owner doesn't provide support for it anymore. There are some important features missing. It isn't possible to save nbt, chunks, locations etc. propertly yet.
This Addon is very very good! Thank you for that...