From 96a58aa3df514f1e6665e0621875e6dcbc6bf26c Mon Sep 17 00:00:00 2001 From: graywolf336 Date: Mon, 10 Feb 2014 14:55:16 -0600 Subject: [PATCH] Fix the header being incorrect when listing prisoners --- .../graywolf336/jail/command/subcommands/JailListCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/graywolf336/jail/command/subcommands/JailListCommand.java b/src/main/java/com/graywolf336/jail/command/subcommands/JailListCommand.java index d436dbc..2a951a4 100644 --- a/src/main/java/com/graywolf336/jail/command/subcommands/JailListCommand.java +++ b/src/main/java/com/graywolf336/jail/command/subcommands/JailListCommand.java @@ -22,7 +22,7 @@ import com.graywolf336.jail.enums.LangString; ) public class JailListCommand implements Command { public boolean execute(JailManager jm, CommandSender sender, String... args) { - sender.sendMessage(ChatColor.AQUA + "----------Jails----------"); + sender.sendMessage(ChatColor.AQUA + "----------" + (args.length == 1 ? "Jails" : "Prisoners") + "----------"); //Check if there are any jails if(jm.getJails().isEmpty()) {