Only charge in one spot for vaults

This commit is contained in:
Trent Hensler
2018-04-06 15:48:21 -07:00
parent 73d7fbbca4
commit a58320a5f3
3 changed files with 4 additions and 9 deletions
@@ -32,7 +32,7 @@ public class VaultCommand implements CommandExecutor {
switch (args.length) {
case 1:
if (VaultOperations.openOwnVault(player, args[0], true)) {
if (VaultOperations.openOwnVault(player, args[0])) {
PlayerVaults.getInstance().getInVault().put(player.getUniqueId().toString(), new VaultViewInfo(player.getUniqueId(), Integer.parseInt(args[0])));
} else if (sender.hasPermission("playervaults.admin")) {
OfflinePlayer searchPlayer = Bukkit.getOfflinePlayer(args[0]);