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