Skip to content

first install

Config Plugins edited this page Sep 3, 2026 · 3 revisions

πŸš€ First Install

Follow these steps to set up Vault v2.1.0 from scratch on your Spigot / Paper / Purpur server.


βœ… Minimum requirements

Layer Requirement Supported range Note
β˜• Java JDK / JRE 17 LTS or 21 LTS The JAR is distributed in two flavors: vault-2.1.0-java17.jar and vault-2.1.0-java21.jar. Do not mix versions.
πŸ“¦ Server Spigot / Paper / Purpur / Folia 1.8.8 – 1.21.x api-version: 1.13 in plugin.yml, but the plugin shims handlers for 1.8.8.
πŸ”Œ SoftDepends LuckPerms, PlaceholderAPI, SkinsRestorer (any stable) Not mandatory; if present, Vault auto-integrates.
πŸ—„οΈ Database YAML (default) / MySQL 8.0+ / MariaDB 10.6+ optional MySQL requires storage.use_mysql: true and a schema + user with CREATE / INSERT / SELECT / UPDATE / DELETE privileges.
πŸ’Ύ RAM heap Recommended minimum 1 GB for active MySQL Default HikariCP pool = 10 connections.

πŸ“₯ Installation (step by step)

  1. Choose the correct JAR

    • For Java 17 servers β†’ vault-2.1.0-java17.jar
    • For Java 21 servers β†’ vault-2.1.0-java21.jar
  2. Stop the server and place the JAR in your plugins/ folder:

    my_server/
    β”œβ”€β”€ spigot-1.21.1.jar
    β”œβ”€β”€ plugins/
    β”‚   β”œβ”€β”€ PlaceholderAPI/
    β”‚   β”œβ”€β”€ LuckPerms/
    β”‚   └── Vault/           ← created on first boot
    β”‚   └── vault-2.1.0-java21.jar   ← PASTE HERE
    └── ...
    
  3. (Optional) Install neighboring plugins to activate integrations:

    • PlaceholderAPI.jar β†’ enables %vault_balance_formatted%, etc.
    • SkinsRestorer.jar β†’ heads in /pay work even if the server is in offline mode.
    • LuckPerms.jar β†’ to manage vault.* permissions comfortably.
  4. Start the server. You will see in console:

    [Vault] ========================================
    [Vault]   Vault v2.1.0 (Java 21 build)
    [Vault]   Internal economy + Vault API bridge
    [Vault] ========================================
    [Vault] Locale: en  β†’ messages_en.yml loaded
    [Vault] Storage: YAML  (balances.yml)
    [Vault] PlaceholderAPI detected β†’ registered 40+ placeholders
    [Vault] SkinsRestorer detected β†’ enabled head resolution
    [Vault] Update check: latest = v2.1.0  (you are up to date)
    
  5. Stop and edit plugins/Vault/config.yml with your values (see Config Reference β†’).

  6. Start again and run from in-game or console:

    /eco give YourName 10000
    /balance
    

πŸ”§ First boot: generated files

The first /reload confirm or first boot creates inside plugins/Vault/:

# Default structure (v2.1.0)
config.yml                  # General settings, currency, storage, loans, bank, discord
balances.yml                # YAML balance storage (when use_mysql: false)
bank.yml                    # Banking system balances (bank_balance per UUID)
loans.yml                   # Active / closed loans (YamlLoanStorage)
transactions/               # Folder with daily JSON logs (DailyJsonLogWriter)
    β”œβ”€β”€ 2026-09-02.json
    └── ...
messages/
    β”œβ”€β”€ messages_en.yml
    β”œβ”€β”€ messages_es.yml
    β”œβ”€β”€ messages_pt.yml
    β”œβ”€β”€ messages_de.yml
    β”œβ”€β”€ messages_fr.yml
    β”œβ”€β”€ messages_nl.yml
    β”œβ”€β”€ messages_pl.yml
    β”œβ”€β”€ messages_ru.yml
    β”œβ”€β”€ messages_hi.yml
    β”œβ”€β”€ messages_zh_CN.yml
    └── messages_zh_TW.yml

βœ… Post-installation checks

Run this checklist in-game (with OP or vault.admin):

Step Command Expected result
1 /balance Shows Your balance: 0.00 $
2 /eco give Steve 5000 Steve +5000.00 $ (admin give)
3 /pay Steve 1000 If Steve is online, 1000 arrives instantly
4 /vault top #1 Steve 5000.00 $
5 /vault bank deposit 3000 Deposited: 3000.00 $
6 /vault bank balance Wallet: 3000.00 $ Β· Bank: 3000.00 $ Β· Total: 6000.00 $
7 /vault withdraw 500 You receive a paper (PhysicalNote) in inventory
8 /vault reload Vault reloaded (language: en)

If everything works β†’ proceed to configure Config Reference β†’ and choose your language in Languages β†’.


βš™οΈ Enable MySQL (optional)

Edit config.yml:

storage:
  use_mysql: true
  mysql:
    host: db.myserver.com
    port: 3306
    database: vault_prod
    username: vault_user
    password: "YourSecurePassword123!"
    pool_size: 10

Restart and look in the log: Vault: MySQL connection pool OK (10 idle). If you see SQLException, check credentials, firewall, and that the schema exists (the plugin does not create the database; it does create the balances and tx_log tables).

Vault v2.1 Β· Wiki


πŸ†” For Beginners


πŸ’΅ Currency & Format


⌨️ Commands & Permissions


πŸ“¦ Economic Features


❓ FAQ & Troubleshooting


🌐 Multi-world


🀝 Compatibility


🧩 Scripting & Integration


πŸ‘©β€πŸ’» Developers


🧰 Other

Clone this wiki locally