No longer require true/false for the -m.

This commit is contained in:
graywolf336
2013-12-19 09:19:55 -06:00
parent 500c2abd51
commit 5f2fcd9027
3 changed files with 11 additions and 10 deletions

View File

@ -27,7 +27,8 @@ public class JailCommand implements Command {
try {
new JCommander(params, args);
}catch(ParameterException e) {
return false;
sender.sendMessage(e.getMessage());
return true;
}

View File

@ -9,7 +9,7 @@ import com.beust.jcommander.Parameter;
* Contains all the parameters from the jail command.
*
* @author graywolf336
* @version 1.0.0
* @version 1.0.1
* @since 3.0.0
*/
public class JailParameters {
@ -28,7 +28,7 @@ public class JailParameters {
@Parameter(names = { "-c", "-cell" }, description = "The cell in the jail we are sending them to.")
private String cell = "";
@Parameter(names = { "-m", "-muted" }, description = "Whether they can talk or not.", arity = 1)
@Parameter(names = { "-m", "-muted" }, description = "Whether they can talk or not.")
private boolean muted = false;
@Parameter(names = { "-r", "-reason" }, description = "The reason this player is being jailed for.", variableArity = true)