Signs are not commands

This commit is contained in:
mbax
2021-06-26 15:45:29 -04:00
parent 09957304e6
commit e75dc6c609
2 changed files with 2 additions and 2 deletions
@@ -194,7 +194,7 @@ public class VaultOperations {
* @return Whether or not the player was allowed to open it.
*/
public static boolean openOwnVault(Player player, String arg, boolean isCommand) {
if (isCommand && player.hasPermission("playervaults.commands.use")) {
if (!isCommand || player.hasPermission("playervaults.commands.use")) {
return openOwnVault(player, arg);
}
PlayerVaults.getInstance().getTL().noPerms().title().send(player);