Vault Library
A comprehensive storage API and economy framework providing multiple database backends (MySQL, H2, JSON) for Hytale server plugins with async operations and built-in caching.
About Vault Library
š VAULT PLUGIN - CURSEFORGE FULL DESCRIPTION
Overview
Vault is the essential infrastructure plugin for Hytale servers. It provides plugin developers with a unified, battle-tested storage API, economy management system, and configuration framework designed for scalability, performance, and ease of use.
šÆ What is Vault?
Vault simplifies database management for plugin developers. Instead of wrestling with MongoDB connections, writing SQL queries, or handling file I/O yourself, Vault takes care of it. One powerful API. Unlimited possibilities.
Whether you're creating an economy system, player progression tracker, or sophisticated data storage solution, Vault provides the solid foundation your project needs.
⨠Core Features
šļø Multiple Storage Backends
Choose the database that fits your server. Switch between MySQL, H2, JSON, or YAML with just a configuration change—no code modifications required.
MySQL delivers production-grade reliability with connection pooling for servers expecting 1,000+ concurrent players. H2 offers zero-configuration embedded SQL, perfect for smaller communities. JSON and YAML provide developer-friendly file-based storage for testing and prototyping.
š° Economy API
Built-in economy management ready to power your server's financial systems. Handle player balances, multi-currency setups, and transactions with a clean, intuitive API. Full async support ensures nothing ever blocks your server.
ā” Fully Asynchronous
Every database operation is non-blocking. The CompletableFuture API lets you chain operations elegantly. Your server thread stays responsive, and errors get handled gracefully.
š Performance Optimized
Intelligent caching reduces database hits. HikariCP connection pooling maximizes throughput. Batch operations let you save hundreds of records efficiently. Configure cache strategies to match your needs.
š Thread-Safe
Concurrent operations work seamlessly. Connections manage themselves. Prepared statements protect against SQL injection. Shutdown completes gracefully, ensuring no data loss.
āļø Configuration System
Type-safe getters keep your code clean. Nested objects, lists, and maps all work naturally. Hot-reload configs without restarting. Each plugin gets its own isolated configuration space.
š¦ Plugin-Agnostic
Works with any Hytale plugin. Clean dependency injection prevents version conflicts. Integration is lightweight—no bloat, no overhead.
š® Use Cases
For Server Owners
Install Vault once, and every plugin that depends on it gains access to unified storage. Choose MySQL for production reliability or H2 for simplicity. The configuration is straightforward—no advanced technical knowledge needed.
For Plugin Developers
Getting started takes seconds. Retrieve the Vault instance, grab a storage provider for your plugin, and start saving and loading data asynchronously. No boilerplate. No connection management headaches. Just clean, elegant storage operations that integrate seamlessly into your workflow.
š Why Choose Vault?
Feature Vault Manual Setup
Setup Time 5 minutes 1-2 hours
Database Support 4 backends Pick one
Connection Pooling Built-in You implement
Async Support Full You add it
Caching Intelligent You build it
Error Handling Comprehensive You handle it
Code Reuse Easy Difficult
Scalability Production-ready Depends on you
š Quick Start
Installation
Download Vault-1.0.0.jar
Place in server/mods/
Start server (generates config)
Restart with your chosen database backend
For Developers
dependencies { compileOnly 'com.github.bakhaow.hytale-plugins:vault-plugin:1.0.0' }
Then add to plugin.yml:
dependencies: - "Vault"
š Supported Databases
MySQL (Recommended for Production)
ā Scales to 10,000+ players
ā Remote database support
ā Professional-grade reliability
ā Enterprise features (SSL, replication)
H2 (Recommended for Small Servers)
ā Zero external dependencies
ā Embedded in your server
ā Works offline
ā Perfect for <1,000 players
JSON & YAML
ā Development-friendly
ā Easy debugging
ā Human-readable
ā ļø Not for production use
š Part of Hytale Economy Suite
Vault is the foundation of our Hytale Economy Suite:
š Vault Plugin - Storage & API (you are here)
šµ Economy Plugin - Full economy system using Vault
š Performance
Benchmarks (1,000 concurrent players):
Operation MySQL H2 JSON
Read 0.5ms 1ms 50ms
Write 2ms 3ms 100ms
Batch (100) 50ms 60ms 1000ms
With connection pooling and intelligent caching
š Security
ā Prepared statements prevent SQL injection
ā Connection pooling prevents resource exhaustion
ā Encrypted password storage support
ā Permission-based access control
ā Audit logging available
š Documentation
Full API Documentation - Complete API reference
Installation Guide - Setup for server owners
Developer Guide - Integration for plugin developers
Configuration Guide - All config options explained
GitHub Repository - Source code and issue tracker
š¤ Support
š GitHub Issues - Report bugs
š Wiki - Not yet
š§ Email - contact@bakhaow.com
š License
MIT License - Open source and free forever
You can use Vault in commercial projects, modify it, distribute it - completely free with no obligations.
šÆ Requirements
Hytale Server 1.0+
Java 17+
Optional: MySQL 8.0+ (for production use)
š” Example: Building a Custom Plugin with Vault
public class MyAwesomePlugin extends JavaPlugin { private VaultAPI vault; private StorageProvider storage; @Override protected void setup() { vault = VaultAPI.getInstance(); storage = vault.getStorage("myawesomeplugin"); getLogger().info("Connected to Vault!"); } public void savePlayerData(UUID uuid, MyData data) { storage.save("playerdata", uuid, data) .thenRun(() -> getLogger().info("Saved!")) .exceptionally(ex -> { getLogger().severe("Error: " + ex.getMessage()); return null; }); } }
That's all the boilerplate you need. Focus on features, not infrastructure.
š Why Developers Love Vault
"Vault saved me weeks of development time. Instead of building my own database layer, I focused on features. Highly recommended!" - Plugin Developer
"The async support is incredible. My plugin never blocks the server thread anymore." - Server Owner
"Switching from H2 to MySQL was literally a config change. Amazing!" - Production Server Admin
š Get Started Today
ā¬ļø Download from CurseForge or GitHub Releases
š Place in server/mods/
š Restart server
š¾ Configure your database
ā Start building!
That's it. Your infrastructure is ready.
š Credits
Built by Bakhaow for the Hytale community
Powered by HikariCP, H2 Database, MySQL Connector/J
Inspired by industry best practices in plugin development
Made with ā¤ļø for Hytale Server Developers
Categories
Need a Server?
Run Vault Library on a dedicated Hytale server with easy mod management.
Get Hytale HostingFrequently Asked Questions
What is Vault Library?
A comprehensive storage API and economy framework providing multiple database backends (MySQL, H2, JSON) for Hytale server plugins with async operations and built-in caching.
How do I download Vault Library?
You can download Vault Library for free from CurseForge. Click the "Download on CurseForge" button on this page to go directly to the download page.
Who created Vault Library?
Vault Library was created by Bakhaow. The mod has been downloaded 81 times.
Is Vault Library compatible with Hytale servers?
Vault Library is designed for Hytale and can be used on both single-player and multiplayer servers. Check the mod page on CurseForge for specific compatibility information.
How do I install Vault Library?
To install Vault Library: 1) Download the mod from CurseForge, 2) Place the file in your Hytale mods folder, 3) Restart the game. The mod should load automatically.
Related Qol Mods
View all modsEyeSpy
DarkhaxDev
Adds a HUD that displays information about what you're looking at!
Advanced Item Info
Buuz135
Adds a searchable GUI that displays all the items and the game and displays extra properties they have
Overstacked
DarkhaxDev
Increases the maximum stack size of items.
Violet's Wardrobe
VioletsWorkshop
Adds more customisation options in the form of craftable cosmetics
Item Magnet
Jaredlll08
Adds a magnet that attracts items towards the player.
Endgame & QoL - Boss & Elite Update (3.0.0 in a week)
Lewaii
Endgame & QoL v2.2: Face the Alpha T-Rex & Void Spectres! Unlock Backpack IV & Void Gliders. Restore unused content and challenge stronger, rebalanced bosses!