• 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.15
  2. 1.16
  3. 1.17
  4. 1.18
  5. 1.19
BeeDB is discontinued. No support is given for users.

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
- Data file 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.
Author
erenkara
Downloads
584
Views
721
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from erenkara

Latest updates

  1. 1.0.3

    - Delete variables on quit, I thought I already did it :/
  2. 1.0.2

    - Another bug fix, hopefully the last one.
  3. 1.0.1

    - Fixed a bug where variables are not mapped correctly.