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;
}

View File

@ -26,7 +26,7 @@ language:
unknowncommand: '&cNo commands registered by the name of %0%.'
jailing:
afkkickmessage: '&cYou can not be afk while being jailed.'
alreadyjailed: '&cThat player is already jailed.'
alreadyjailed: '&c%0% is already jailed.'
broadcastmessageforever: '&9%0% has been jailed forever.'
broadcastmessageforminutes: '&9%0% has been jailed for %1% minutes.'
broadcastunjailing: '&9%0% has been unjailed by %1%.'