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.