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:
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user