From cb8de04a9107887f831309e8dd03f3207d504c01 Mon Sep 17 00:00:00 2001 From: graywolf336 Date: Thu, 23 Jan 2014 18:51:22 -0600 Subject: [PATCH] Temp work on the jailcheck command, not finishing. It has been decided we are going to be switching the command structure up, more details to come. --- .../jail/command/commands/JailCheckCommand.java | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/graywolf336/jail/command/commands/JailCheckCommand.java b/src/main/java/com/graywolf336/jail/command/commands/JailCheckCommand.java index 0f9d7e1..38d3ae9 100644 --- a/src/main/java/com/graywolf336/jail/command/commands/JailCheckCommand.java +++ b/src/main/java/com/graywolf336/jail/command/commands/JailCheckCommand.java @@ -5,6 +5,7 @@ import org.bukkit.command.CommandSender; import com.graywolf336.jail.JailManager; import com.graywolf336.jail.command.Command; import com.graywolf336.jail.command.CommandInfo; +import com.graywolf336.jail.enums.LangString; @CommandInfo( maxArgs = 1, @@ -19,7 +20,19 @@ public class JailCheckCommand implements Command{ // Checks the status of the specified prisoner, if no args, will display all players currently jailed public boolean execute(JailManager jm, CommandSender sender, String... args) { - return true; //If they made it this far, the command is intact and ready to be processed. :) + //No args means show everyone + if(args.length == 0) { + + }else { + //Otherwise let's check the first arg + if(jm.isPlayerJailed(args[0])) { + + }else { + sender.sendMessage(jm.getPlugin().getJailIO().getLanguageString(LangString.NOTJAILED, args[0])); + } + } + + return true; } }