Make subcommands case insensitive
CONFIRM should be the same as confirm
This commit is contained in:
parent
2d11239ce4
commit
f8ae4f3b80
@ -76,7 +76,7 @@ public class JailHandler {
|
||||
|
||||
}else {
|
||||
//Get the matches from the first argument passed
|
||||
List<Command> matches = getMatches(args[0]);
|
||||
List<Command> matches = getMatches(args[0].toLowerCase());
|
||||
|
||||
if(matches.size() == 0) {
|
||||
//No matches found, thus it is more likely than not they are trying to jail someone
|
||||
|
Loading…
Reference in New Issue
Block a user