Add drop on death for vaults.

Allow configurable drop on death.
Abillity to drop all vaults.
Bypass permission playervaults.ignore.drops
This commit is contained in:
Trent Hensler
2013-03-18 23:21:06 -05:00
parent 03eedace9a
commit 3fc0eb8ba7
7 changed files with 156 additions and 13 deletions
@@ -26,6 +26,8 @@ public class Main extends JavaPlugin {
public static String name = "";
Commands commands;
public static Economy econ = null;
public static boolean dropOnDeath = false;
public static int inventoriesToDrop = 0;
@Override
public void onEnable() {
@@ -50,6 +52,12 @@ public class Main extends JavaPlugin {
getCommand("pv").setExecutor(commands);
getCommand("pvdel").setExecutor(commands);
setupEconomy();
if(getConfig().getBoolean("drop-on-death.enabled")) {
dropOnDeath = true;
inventoriesToDrop = getConfig().getInt("drop-on-death.inventories");
}
}
public void transferVaults() {