Allow /jail status and also send them a message when they check it

This commit is contained in:
graywolf336 2014-02-14 23:34:41 -06:00
parent 3784eb6b28
commit 47fba5ab79
2 changed files with 3 additions and 3 deletions

View File

@ -22,10 +22,10 @@ public class JailStatusCommand implements Command{
if(jm.isPlayerJailed(sender.getName())) {
Prisoner p = jm.getPrisoner(sender.getName());
//They are jailed, so let's tell them some information
jm.getPlugin().getJailIO().getLanguageString(LangString.STATUS, new String[] { p.getReason(), p.getJailer(), String.valueOf(p.getRemainingTimeInMinutes()) });
sender.sendMessage(jm.getPlugin().getJailIO().getLanguageString(LangString.STATUS, new String[] { p.getReason(), p.getJailer(), String.valueOf(p.getRemainingTimeInMinutes()) }));
}else {
//the sender of the command is not jailed, tell them that
jm.getPlugin().getJailIO().getLanguageString(LangString.YOUARENOTJAILED);
sender.sendMessage(jm.getPlugin().getJailIO().getLanguageString(LangString.YOUARENOTJAILED));
}
return true;

View File

@ -24,7 +24,7 @@ jailing:
blockPlaceWhiteList: ['crops', 'carrot', 'potato'] # these blocks can be placed at any time by prisoners
commandPenalty: 5m
commandProtection: true
commandWhitelist: ['/ping', '/list']
commandWhitelist: ['/ping', '/list', '/jail status]
countDownTimeWhileOffline: false
cropTramplingPenalty: 5m
cropTramplingProtection: true