diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/CommandHandlerPlugin.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/CommandHandlerPlugin.java index f6e380a..f90ee8c 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/CommandHandlerPlugin.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/CommandHandlerPlugin.java @@ -149,8 +149,7 @@ public class CommandHandlerPlugin { if ( command.trustLevel == TrustLevel.OWNER && - !userHash.equals(bot.hashing.getOwnerHash(splitInput[0], context.sender, false)) && - !userHash.equals(bot.hashing.getOwnerHash(splitInput[0], context.sender, true)) + !bot.hashing.isCorrectOwnerHash(userHash, splitInput[0], context.sender) ) return Component.text("Invalid OwnerHash").color(NamedTextColor.RED); } }