Mineuniverse
Plugins
Vault

Vault

PLUGIN
Vault is a Economy/Permission plugin for hooking into the various Economy and Permission plugins.
by Sleakes
Download Claim this project
7,950,903 downloads
0 likes
Updated Oct 14, 2026
0 hypes
Admin Tools Developer Tools Economy General
Advertisement Remove ads with Premium →

Vault is a Permissions, Chat, & Economy API to give plugins easy hooks into these systems without needing to hook or depend on each individual plugin themselves. It was born out of a distaste for how both Register and the current Permissions API are run, and their lack of features or over-complicated implementations. Vault attempts to solve these issues by being intuitive and providing plugins with support for any system that they may use.

Config:

  • update-check
    • turns the update checker on/off

Permissions:

  • vault.admin
    • allows access to vault info and conversion commands
    • defaults to OP
  • vault.update
    • Anyone with this permission will be notified when Vault is out-dated
    • defaults to OP
    • setting to false in permissions.yml will disable version check messages for console

Vault currently Supports:




This plugin utilizes Hidendra's plugin metrics system. the following information is collected and sent to bstats.org unless opted out:

  • A unique identifier
  • The server's version of Java
  • Whether the server is in offline or online mode
  • Plugin's version
  • Server's version
  • OS version/name and architecture
  • core count for the CPU
  • number of players online
  • Metrics version
  • Which Chat, Economy, and Permission hook is in use.

Opting out of this service can be done by editing plugins/bstats/config.yml and changing opt-out to true.


Linking Vault

There's a slightly longer/more detailed example on the Vault github page on how you might link to vault in a plugin. See: https://github.com/MilkBowl/VaultAPI

The following 3 methods can be used along with the 3 variables to load both the permission, economy, and chat systems from Vault. Make sure to add depend: [Vault] to your plugin.yml - You don't need to use all 3 if you don't want to in your plugin! If you only want one or two of the three APIs only use those ones you need!

NOTICE: Vault automatically logs what Plugins it found and hooks to, there is no need to display this information in your plugin.

NOTICE: Don't Forget To add softdepend: [Vault] or depend: [Vault] to your plugin.yml

    public static Permission permission = null;
    public static Economy economy = null;
    public static Chat chat = null;

    private boolean setupPermissions()
    {
        RegisteredServiceProvider<Permission> permissionProvider = getServer().getServicesManager().getRegistration(net.milkbowl.vault.permission.Permission.class);
        if (permissionProvider != null) {
            permission = permissionProvider.getProvider();
        }
        return (permission != null);
    }

    private boolean setupChat()
    {
        RegisteredServiceProvider<Chat> chatProvider = getServer().getServicesManager().getRegistration(net.milkbowl.vault.chat.Chat.class);
        if (chatProvider != null) {
            chat = chatProvider.getProvider();
        }

        return (chat != null);
    }

    private boolean setupEconomy()
    {
        RegisteredServiceProvider<Economy> economyProvider = getServer().getServicesManager().getRegistration(net.milkbowl.vault.economy.Economy.class);
        if (economyProvider != null) {
            economy = economyProvider.getProvider();
        }

        return (economy != null);
    }

Repository Information for Maven Projects

<repository>
	<id>vault-repo</id>
	<url>http://nexus.hc.to/content/repositories/pub_releases</url>
</repository>

Vault 1.7.3
MC 1.16, 1.14, 1.13, 1.15
Release 2020-07-17 Get
Vault 1.7.2
MC 1.14, 1.13, 1.15
Release 2019-04-28 Get
Vault 1.7.1
MC 1.14, 1.13
Release 2018-09-11 Get
Vault 1.5.6
MC 1.9, 1.11, 1.8.1, 1.10
Release 2015-08-18 Get
Vault 1.5.5
MC 1.8.1
Release 2015-08-16 Get
Vault 1.5.3
MC 1.8.1
Release 2015-02-26 Get
Vault 1.5.2
MC 1.8.1
Release 2015-01-09 Get
Vault 1.5.0
MC 1.8.1, 1.8
Release 2014-12-08 Get
Vault 1.4.1
MC CB 1.7.9-R0.1
Release 2014-05-24 Get
Vault 1.2.31
MC CB 1.7.2-R0.2
Release 2014-01-29 Get
Vault 1.2.27
MC CB 1.6.2-R0.1
Release 2013-09-08 Get
Vault 1.2.26
MC CB 1.5.2-R1.0
Release 2013-07-12 Get
Vault 1.2.25
MC CB 1.5.2-R0.1
Release 2013-04-13 Get
Vault 1.2.24
MC CB 1.4.7-R1.0
Release 2013-03-02 Get
Vault 1.2.23
MC CB 1.4.7-R1.0
Release 2013-02-13 Get
Vault 1.2.22
MC CB 1.4.5-R1.0, CB 1.4.6-R0.3
Release 2012-12-13 Get
Vault 1.2.20
MC CB 1.4.2-R0.1, CB 1.4.2-R0.2, CB 1.4.5-R0.1
Release 2012-11-20 Get
Vault 1.2.19
MC CB 1.3.2-R1.0
Release 2012-10-01 Get
Vault 1.2.18
MC CB 1.3.2-R0.1, CB 1.3.1-R2.0
Release 2012-08-25 Get
Vault 1.2.17
MC CB 1.3.1-R1.0
Release 2012-08-10 Get
Vault 1.2.16
MC CB 1.2.5-R4.0
Release 2012-05-10 Get
Vault 1.2.15
MC CB 1.2.5-R1.0
Release 2012-04-14 Get
Vault 1.2.14
MC CB 1.2.5-R1.0
Release 2012-04-07 Get
Vault 1.2.13
MC CB 1.2.3-R0.2, CB 1.1-R8, CB 1.2.4-R1.0
Release 2012-03-15 Get
Vault 1.2.12
MC CB 1.2.3-R0.1, CB 1.1-R7, CB 1.1-R6
Release 2012-03-01 Get
Vault 1.2.11
MC CB 1.1-R2, CB 1.1-R4, CB 1.1-R1
Release 2012-02-27 Get
Vault 1.2.9
MC CB 1.1-R3, CB 1.1-R4, CB 1.1-R1
Release 2012-02-19 Get
Vault 1.2.8
MC CB 1.1-R3, CB 1.1-R2, CB 1.1-R1
Release 2012-02-01 Get
Vault 1.2.6
MC CB 1.1-R3, CB 1.1-R2, CB 1.1-R1
Release 2012-01-26 Get
Vault 1.2.5
MC CB 1.0.1-R1, CB 1.1-R1, CB 1337
Release 2012-01-17 Get
Vault 1.2.4
MC CB 1.0.1-R1, CB 1.1-R1, CB 1337
Release 2012-01-14 Get
Vault 1.2.3
MC CB 1.0.1-R1, CB 1317, CB 1337
Release 2012-01-02 Get
Vault 1.2.2
MC CB 1.0.1-R1, CB 1317, CB 1337
Release 2012-01-01 Get
Vault 1.2.1
MC CB 1.0.1-R1, CB 1317, CB 1337
Release 2011-12-31 Get
Vault 1.2.0
MC CB 1.0.1-R1, CB 1317, CB 1337
Release 2011-12-27 Get
Vault 1.1.9
MC CB 1.0.1-R1, CB 1317, CB 1337
Release 2011-12-16 Get
Vault 1.1.8
MC CB 1.0.1-R1, CB 1317, CB 1337
Release 2011-12-09 Get
Vault 1.1.7
MC CB 1.0.1-R1, CB 1317, CB 1337
Release 2011-12-06 Get
Vault 1.1.6
MC CB 1.0.1-R1, CB 1317, CB 1337
Release 2011-12-03 Get
Vault 1.1.5
MC CB 1240, CB 1317, CB 1337
Release 2011-11-29 Get
Vault 1.1.4
MC CB 1240, CB 1317, CB 1337
Release 2011-11-27 Get
Vault 1.1.3
MC CB 1240, CB 1317, CB 1337
Release 2011-11-20 Get
Vault 1.1.2
MC CB 1337
Release 2011-11-17 Get
Vault 1.1.1
MC CB 1337
Release 2011-11-09 Get
Vault 1.1.0-b66
MC CB 1337
Release 2011-10-31 Get
Vault - 1.0.0-b45
MC CB 1337
Release 2011-10-21 Get

More from Sleakes

Advertisement Remove ads with Premium →

You Might Also Like