Fix the header being incorrect when listing prisoners

This commit is contained in:
graywolf336 2014-02-10 14:55:16 -06:00
parent 7ce81c774f
commit 96a58aa3df

View File

@ -22,7 +22,7 @@ import com.graywolf336.jail.enums.LangString;
) )
public class JailListCommand implements Command { public class JailListCommand implements Command {
public boolean execute(JailManager jm, CommandSender sender, String... args) { 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 //Check if there are any jails
if(jm.getJails().isEmpty()) { if(jm.getJails().isEmpty()) {