Allow /jail status
and also send them a message when they check it
This commit is contained in:
parent
3784eb6b28
commit
47fba5ab79
@ -22,10 +22,10 @@ public class JailStatusCommand implements Command{
|
|||||||
if(jm.isPlayerJailed(sender.getName())) {
|
if(jm.isPlayerJailed(sender.getName())) {
|
||||||
Prisoner p = jm.getPrisoner(sender.getName());
|
Prisoner p = jm.getPrisoner(sender.getName());
|
||||||
//They are jailed, so let's tell them some information
|
//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 {
|
}else {
|
||||||
//the sender of the command is not jailed, tell them that
|
//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;
|
return true;
|
||||||
|
@ -24,7 +24,7 @@ jailing:
|
|||||||
blockPlaceWhiteList: ['crops', 'carrot', 'potato'] # these blocks can be placed at any time by prisoners
|
blockPlaceWhiteList: ['crops', 'carrot', 'potato'] # these blocks can be placed at any time by prisoners
|
||||||
commandPenalty: 5m
|
commandPenalty: 5m
|
||||||
commandProtection: true
|
commandProtection: true
|
||||||
commandWhitelist: ['/ping', '/list']
|
commandWhitelist: ['/ping', '/list', '/jail status]
|
||||||
countDownTimeWhileOffline: false
|
countDownTimeWhileOffline: false
|
||||||
cropTramplingPenalty: 5m
|
cropTramplingPenalty: 5m
|
||||||
cropTramplingProtection: true
|
cropTramplingProtection: true
|
||||||
|
Loading…
Reference in New Issue
Block a user