Vault

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>

Download

File Name Status Version Downloads Date
Vault 1.7.2 R 1.14 +1 154,128 28/04/2019
Vault 1.5.6 R 1.11 +3 1,536,893 18/08/2015
Vault 1.5.5 R 1.8.1 48,970 15/08/2015
Vault 1.5.0 R 1.8.1 +1 136,480 07/12/2014
Vault 1.4.1 R CB 1.7.9-R0.1 408,939 23/05/2014
Vault 1.2.31 R CB 1.7.2-R0.2 398,306 28/01/2014
Vault 1.2.27 R CB 1.6.2-R0.1 248,347 07/09/2013
Vault 1.2.26 R CB 1.5.2-R1.0 189,136 11/07/2013
Vault 1.2.25 R CB 1.5.2-R0.1 278,866 13/04/2013
Vault 1.2.24 R CB 1.4.7-R1.0 165,485 01/03/2013
Vault 1.2.22 R CB 1.4.6-R0.3 +1 229,697 12/12/2012
Vault 1.2.20 R CB 1.4.5-R0.1 +2 94,145 19/11/2012
Vault 1.2.19 R CB 1.3.2-R1.0 208,427 30/09/2012
Vault 1.2.18 R CB 1.3.2-R0.1 +1 177,106 25/08/2012
Vault 1.2.17 R CB 1.3.1-R1.0 82,914 10/08/2012
Vault 1.2.16 R CB 1.2.5-R4.0 344,962 09/05/2012
Vault 1.2.15 R CB 1.2.5-R1.0 118,404 14/04/2012
Vault 1.2.13 R CB 1.2.4-R1.0 +2 79,015 15/03/2012
Vault 1.2.12 R CB 1.1-R7 +2 46,420 01/03/2012
Vault 1.2.11 R CB 1.1-R4 +2 29,480 27/02/2012
Vault 1.20.2 Updating 1.20.2 Updating Updating
Vault 1.20.1 Updating 1.20.1 Updating Updating
Vault 1.20 Updating 1.20 Updating Updating
Vault 1.19.2 Updating 1.19.2 Updating Updating
Vault 1.19.1 Updating 1.19.1 Updating Updating
Vault 1.19 Updating 1.19 Updating Updating
Vault 1.18 Updating 1.18 Updating Updating
Vault 1.17.1 Updating 1.17.1 Updating Updating
Vault Forge Updating Forge Updating Updating
Vault Fabric Updating Fabric Updating Updating
Vault
Vault

Dear youtuber!
Have you a channel youtube and want to bring your Video to quality visitors?
Do you want your video to appear on our website?
Do you want to become partner with us?
Just 3 steps to become our partner:
Step 1: Make video review for mods, addons, plugins, ... which you like
Step 2: Upload this video to youtube and our link to your video description
Step 3: Send the youtube video link via message to http://fb.com/9lifehack or leave a comment in the post. We will add your video in the our post, it will help you have more view.
JOIN to get more youtube view with us!!!!

Related Posts

Smarty Productivity Happiness

9LifeHack.com - make things smart