Send a message to the sender when they transfer someone...hehe whoops.

This finalizes the development piece of #5, just need to test it.
This commit is contained in:
graywolf336
2014-02-12 13:42:45 -06:00
parent 65f4f47cca
commit f774bf335f
3 changed files with 13 additions and 0 deletions

View File

@ -105,6 +105,13 @@ public class JailTransferCommand implements Command {
jm.getJailPlayerIsIn(params.getPlayer()).getCellPrisonerIsIn(params.getPlayer()),
target, targetCell, jm.getPrisoner(params.getPlayer()));
//Send the messages to the sender, if no cell then say that but if cell send that as well
if(targetCell == null) {
sender.sendMessage(jm.getPlugin().getJailIO().getLanguageString(LangString.TRANSFERCOMPLETENOCELL, new String[] { params.getPlayer(), target.getName() }));
}else {
sender.sendMessage(jm.getPlugin().getJailIO().getLanguageString(LangString.TRANSFERCOMPLETECELL, new String[] { params.getPlayer(), target.getName(), targetCell.getName() }));
}
return true;
}
}