Back to Mods
Vault Library

Vault Library

qolBakhaow

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

Downloads
81
Created
Jan 21, 2026
Updated
Jan 23, 2026
Version
Early Access

Categories

Quality of LifeLibraryUtility

Download Mod

Download on CurseForge
Free download • 81 total downloads

Need a Server?

Run Vault Library on a dedicated Hytale server with easy mod management.

Get Hytale Hosting

Frequently 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.