diff --git a/src/main/java/xyz/etztech/qol/listeners/CommandPreprocessListener.java b/src/main/java/xyz/etztech/qol/listeners/CommandPreprocessListener.java index ad2e3e4..d9566c6 100644 --- a/src/main/java/xyz/etztech/qol/listeners/CommandPreprocessListener.java +++ b/src/main/java/xyz/etztech/qol/listeners/CommandPreprocessListener.java @@ -80,7 +80,9 @@ public class CommandPreprocessListener implements Listener { if (sender.hasPermission("qol.specconfirm")) { boolean confirm = false; for (String confirmable : specConfirm) { - if (noSlash(command).toLowerCase().startsWith(confirmable.toLowerCase())) { + // If the player command either starts with a confirmable command and space (meaning confirmation is needed regardless of arguments) + // Or the player command is a full match to the confirmable command + if (noSlash(command).toLowerCase().startsWith(confirmable.toLowerCase() + " ") || noSlash(command).toLowerCase().equals(confirmable.toLowerCase())) { confirm = true; } }