From 47fba5ab79775a06f375b3a30fd6a72a865d7d94 Mon Sep 17 00:00:00 2001 From: graywolf336 Date: Fri, 14 Feb 2014 23:34:41 -0600 Subject: [PATCH] Allow `/jail status` and also send them a message when they check it --- .../jail/command/subcommands/JailStatusCommand.java | 4 ++-- src/main/resources/config.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/graywolf336/jail/command/subcommands/JailStatusCommand.java b/src/main/java/com/graywolf336/jail/command/subcommands/JailStatusCommand.java index beff3f2..c2c1edc 100644 --- a/src/main/java/com/graywolf336/jail/command/subcommands/JailStatusCommand.java +++ b/src/main/java/com/graywolf336/jail/command/subcommands/JailStatusCommand.java @@ -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; diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index c801921..1fd1c56 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -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