Tell the sender the player's name they sent back if already jailed.

This commit is contained in:
graywolf336
2014-02-10 14:06:22 -06:00
parent e34c1d0990
commit 05695ce969
2 changed files with 3 additions and 3 deletions

View File

@ -70,12 +70,12 @@ public class JailCommand implements Command {
sender.sendMessage(jm.getPlugin().getJailIO().getLanguageString(LangString.PROVIDEAPLAYER, LangString.JAILING));
return true;
}else {
jm.getPlugin().debug("We are getting ready to handle jailing: " + params.jail());
jm.getPlugin().debug("We are getting ready to handle jailing: " + params.player());
}
//Check if the given player is already jailed or not
if(jm.isPlayerJailed(params.player())) {
sender.sendMessage(jm.getPlugin().getJailIO().getLanguageString(LangString.ALREADYJAILED));
sender.sendMessage(jm.getPlugin().getJailIO().getLanguageString(LangString.ALREADYJAILED, params.player()));
return true;
}