Implement an option to jail in the first open cell, -a. Closes #29

This feature adds a new option to the jail command `-a` which can be
used in place of `-c` if you don't want a specific cell. This option
will jail the player in the first open cell in the jail, thus
eliminating the need to know cell names.
This commit is contained in:
graywolf336
2014-07-27 14:37:46 -05:00
parent 57e304f7c4
commit f89de50d75
3 changed files with 68 additions and 23 deletions

View File

@ -18,6 +18,9 @@ public interface Jailing {
@Option(longName={"cell"}, shortName="c", description = "the cell")
public String getCell();
@Option(longName={"anycell"}, shortName="a", description = "decides whether the plugin will pick any open cell")
public boolean getAnyCell();
@Option(longName={"muted", "canttalk"}, shortName="m", description = "whether the prisoner is muted or not")
public boolean getMuted();
@ -27,6 +30,7 @@ public interface Jailing {
public boolean isTime();
public boolean isJail();
public boolean isCell();
public boolean isAnyCell();
public boolean isMuted();
public boolean isReason();
}