Prevent users from opening a vault if they already have one open.

This commit is contained in:
drtshock
2014-03-12 13:57:23 -05:00
parent 4c3da6e8f5
commit 1342a5584e
2 changed files with 1 additions and 2 deletions
@@ -34,6 +34,7 @@ public class Commands implements CommandExecutor {
if (cmd.getName().equalsIgnoreCase("pv")) {
if (sender instanceof Player) {
Player p = (Player) sender;
if(PlayerVaults.IN_VAULT.containsKey(p.getName())) return true; // don't let them open another vault.
switch (args.length) {
case 1:
if (VaultOperations.openOwnVault(p, args[0])) {