diff --git a/src/main/java/com/graywolf336/jail/command/subcommands/JailCommand.java b/src/main/java/com/graywolf336/jail/command/subcommands/JailCommand.java index e3cf8c4..25c9ccf 100644 --- a/src/main/java/com/graywolf336/jail/command/subcommands/JailCommand.java +++ b/src/main/java/com/graywolf336/jail/command/subcommands/JailCommand.java @@ -52,7 +52,9 @@ public class JailCommand implements Command { //This is just to add the -p param so jCommander doesn't blow up List arguments = new LinkedList(Arrays.asList(args)); - arguments.add(0, "-p"); + //Only add the "-p" if it doesn't already contain it, this way people can do `/jail -p check` in the event someone + //has a name which is one of our subcommands + if(!arguments.contains("-p")) arguments.add(0, "-p"); Jailing params = new Jailing();