Vault

Developer Tools Login to Add Favorites
  • 4 Likes
  • Minecraft
  • 56,308 Monthly Downloads
  • Supports: CB 1.2.5-R2.0
  • 563,625 Total Downloads
  • Updated 5/9/2012 11:54:09 PM
  • Created 10/21/2011 12:56:28 PM
  • 29 Favorites
  • Project Site
  • Release Type: Mature
  • License: GNU Lesser General Public License version 3 (LGPLv3)
  • Newest File: Vault 1.2.16
or
Support development! **
Donate

About Vault

Help support development of Vault: http://i.imgur.com/dviOj.png


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.

Permissions:

  • vault.admin
    • Anyone with this permission will be notified when Vault is out-dated

Vault currently Supports:




Plugins that use Vault:



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/Vault

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);
    }

  • added missing sandstone blocks to the item search class
  • updated to support Towny .8.10 - this breaks all previous towny support
  • added Chat info to vault-info command
  • fixed NPE in vault-info command when not all features had been hooked
  • No longer display a stack trace when the metrics time out after previously succeeding
  • Fixed an NPE in GM group checks
  • Added support for SimplyPerms thanks to Xefir
  • iCo6 will now display a severe warning until the flatfile manager is made to support threading properly.
  • Individual modules failing to load will display an error instead of breaking the entire load process.
Learn how to disable ads
Learn how to disable ads
Login to Curse

Don't have an account? Create One.

Get an epic experience with Curse Premium
  • Faster addon downloads
  • Premium-Only Beta Giveaways
  • Ad-Free Curse experience
  • Premium Curse Client
  • and many More Features
  • Learn More »

Diablo III Giveaway

Enter Now!