BeeDB

  • 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!

erenkara

Addon Developer
Jan 4, 2022
56
4
18
18
What is BeeDB?
BeeDB is a database for Skript that uses NBT data. If you didn't know, NBT is how Minecraft stores data. The playerdata folder also uses NBT data.

How do I use BeeDB?
BeeDB is very easy to use. All you have to do is rename your variables to start with bee.db::%uuid% and BeeDB will handle data saving and loading for you.
Code:
set {bee.db::%player's uuid%::rank} to "admin"
add 1 to {bee.db::%player's uuid%::kills}
If you don't like the bee.db prefix, you can change it in the config inside.
All data is saved inside "plugins/Skript/scripts/BeeDB". You can read the data by using NBT Explorer, using a VSC addon and lots of other ways.


Pros of BeeDB
- Very easy to use
- Better than variables.csv (performance and size-wise)
- Lightweight
- File data can be edited unlike vanilla Skript where it is not recommended.

Cons of BeeDB
- Data isn't available when it is not loaded, meaning you can't make stuff like leaderboards.
- Might break with non-NBT types.
- You can't have a value and a list at the same time. For example:
Code:
set {bee.db::%player's uuid%::a} to "b"
set {bee.db::%player's uuid%::a::*} to 1, 2 and 3
Using this code, the "b" value would be deleted when the data is saved.

Getting Support
You can find me (eren.#7777) in SkUnity discord or by joining my discord server.