Vault Plugin 1.8.1/1.7.9/1.7.2/1.6.2/1.5.2
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:
- Perms: Permissions 3, bPermissions, PEX, GroupManager, PermissionsBukkit, zPermission, SimplyPerms, Privileges, DroxPerms, xPerms
- Econ: iConomy 4,5,6, BOSEconomy 6 & 7, EssentialsEcon, 3Co, MultiCurrency, MineConomy,eWallet, EconXP, CurrencyCore, CraftConomy, AEco, Gringotts
- Bank support in CraftConomy, CurrencyCore, BOSE & iCo6 only
- iCo6/CurrencyCore use merged player/bank accounts. It’s suggested to use BOSE for full featured banks.
- iCo6 flatfile has SEVERE bugs, USE AT YOUR OWN RISK
- Chat: mChat, iChat, bPermissions, PEX, P3, DroxPerms
- Other economies/permissions systems may have built-in support for Vault, check with them to be sure.
- Development builds of this project can be acquired at the provided continuous integration server.
- These builds have not been approved by the BukkitDev staff. Use them at your own risk.
- These downloads are not offered by Curse.com and they take no responsibility for using such links.
- Vault Dev Builds: http://ci.herocraftonline.com
- Builds Marked Promoted have been tested, and have been submitted for approval via dev.bukkit.org
- JavaDocs: http://mythcraft.dyndns.org/javadoc/vault/
- GitHub (SourceCode): https://github.com/MilkBowl/Vault/
This plugin utilizes Hidendra’s plugin metrics system. the following information is collected and sent to mcstats.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/Plugin Metrics/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/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); }
Repository Information for Maven Projects
<repository> <id>vault-repo</id> <url>http://nexus.theyeticave.net/content/repositories/pub_releases</url> </repository>
Changelogs:
v1.2.31
- Added config.yml with option to disable update check.
- Various bug fixes to item searching.
- All 1.7 items accounted for.
Download Vault Plugin
For 1.8.1
http://www.dl3.5minecraft.net/download.php?file=1459ebf8abfc3b92bccc736b0ccf2270
For 1.7.9
http://www.dl3.5minecraft.net/download.php?file=83523939f8bb29002c52b823a6eeae58
For 1.7.2
http://dl2.5minecraft.net/download.php?file=ce8a7eaa8e6e0c51b8076f36acb7564b
For 1.6.2
http://dl2.5minecraft.net/download.php?file=c14b1f9965d44b2a651d8bbedefed4d5
For 1.5.2
http://dl2.5minecraft.net/download.php?file=c6467893dede4a8800fbca97fa773e02
Author:
- Sleaker
-
cerea1
-
mung3r
-
LordKainzo
-
fatmarleys
-
zathrus_writer
-
AgnateHeartstone
-
C031H0
-
craftycreeper