Skip to content

Commit

Permalink
Minor regex adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
ME1312 committed Mar 28, 2022
1 parent 89b99e1 commit bd9c0df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net/ME1312/CBS/Command.java
Expand Up @@ -75,7 +75,7 @@ public boolean execute(CommandSender sender, String label, String[] args) {
sender.sendMessage("");
sender.sendMessage(GRAY + ITALIC.toString() + UNDERLINE + desc.getWebsite() + "/wiki/Flags");
sender.sendMessage("");
} else if (args[0].matches("-+m(?:;.*)?")) {
} else if (args[0].matches("-+m+(?:;.*)?")) {
if (args.length != 1) { // Minimal mode (-m) has the sender run the command as themselves. No further permission checks required.
if (!run(sender, sender, args, 1)) {
if (sender instanceof BlockCommandSender) {
Expand Down

0 comments on commit bd9c0df

Please sign in to comment.