forked from Minecraft/QoL
parent
d26a46f9a0
commit
6ca2a28b88
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue