Check permission node correctly in command
This commit is contained in:
@@ -50,7 +50,7 @@ public class VaultCommand implements CommandExecutor {
|
||||
|
||||
switch (args.length) {
|
||||
case 1:
|
||||
if (VaultOperations.openOwnVault(player, args[0])) {
|
||||
if (VaultOperations.openOwnVault(player, args[0], true)) {
|
||||
PlayerVaults.getInstance().getInVault().put(player.getUniqueId().toString(), new VaultViewInfo(player.getUniqueId().toString(), Integer.parseInt(args[0])));
|
||||
} else if (sender.hasPermission("playervaults.admin")) {
|
||||
OfflinePlayer searchPlayer = Bukkit.getOfflinePlayer(args[0]);
|
||||
|
||||
@@ -309,7 +309,7 @@ public class VaultOperations {
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete all of a player's vaults (Currently goes to vault #100)
|
||||
* Delete all of a player's vaults
|
||||
*
|
||||
* @param sender The sender executing the deletion.
|
||||
* @param holder The user to whom the deleted vault belongs.
|
||||
|
||||
Reference in New Issue
Block a user