Transferring of prisoners to different jails works, finalizes #5.
This commit is contained in:
parent
47fba5ab79
commit
2684fa9bd4
@ -63,13 +63,15 @@ public class JailTransferCommand implements Command {
|
|||||||
sender.sendMessage(jm.getPlugin().getJailIO().getLanguageString(LangString.PROVIDEAJAIL, LangString.TRANSFERRING));
|
sender.sendMessage(jm.getPlugin().getJailIO().getLanguageString(LangString.PROVIDEAJAIL, LangString.TRANSFERRING));
|
||||||
return true;
|
return true;
|
||||||
}else {
|
}else {
|
||||||
//Check if the jail they did provide exists
|
//Check if the jail they did provided is not a valid jail
|
||||||
if(jm.getJail(params.getJail()) == null) {
|
if(!jm.isValidJail(params.getJail())) {
|
||||||
sender.sendMessage(jm.getPlugin().getJailIO().getLanguageString(LangString.NOJAIL, params.getJail()));
|
sender.sendMessage(jm.getPlugin().getJailIO().getLanguageString(LangString.NOJAIL, params.getJail()));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
jm.getPlugin().debug("They provided a valid jail, so let's check the target cell.");
|
||||||
|
|
||||||
Jail target = jm.getJail(params.getJail());
|
Jail target = jm.getJail(params.getJail());
|
||||||
Cell targetCell = null;
|
Cell targetCell = null;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user