- Native Minecraft Version:
- Tested Minecraft Versions:
- Source Code:
- hidden1ninUPDATED VERSION
What is Player Storage API?
Player Storage API allows plugin developers to quickly add Redis/MongoDB support or allows them to use both at the same time!
Why Would I want to use Redis and MongoDB together?
With Redis, lookup times are much faster but storage is much more expensive, with MongoDB you have more storage but slower lookup times, when you use them together, you can store frequently used data in Redis, and have it removed over time, while keeping a copy of it safe in MongoDB.
What if I don't need to use both?
Simply changeto eitherCode (Text):Storage_Configuration: both
orCode (Text):Storage_Configuration: redisto use them independently!Code (Text):Storage_Configuration: mongo
I need to be able to view Player data!
Don't worry we have thought of this and added a simple command to view all data stored for a player!
What kind of data can I store?
Currently we only support strings, integers, and booleans. We hope to add more data types in the future.
Our Config file looks as follows:
(Connections have been slightly changed for my privacy)
Code (Text):Redis_Connection: redis-14639.cloud.redislabs.com
What Does our API look like?
Why do developers have to register defaults?
This was a design choice made to reduce the amount of space used in databases, we automatically remove excess data that matches defaults!
Guide for using it in your plugins: https://www.spigotmc.org/threads/how-to-use-player-storage-api-in-your-plugins.515935/
Examples Coming Soon!!