diff --git a/src/main/java/com/gamingmesh/jobs/commands/JobsCommands.java b/src/main/java/com/gamingmesh/jobs/commands/JobsCommands.java index 4be2f116..1b9af7d3 100644 --- a/src/main/java/com/gamingmesh/jobs/commands/JobsCommands.java +++ b/src/main/java/com/gamingmesh/jobs/commands/JobsCommands.java @@ -257,7 +257,7 @@ public class JobsCommands implements CommandExecutor { } for (ActionType actionType : ActionType.values()) { - if (!type.isEmpty() && type.startsWith(actionType.getName().toLowerCase())) { + if (type.isEmpty() || type.startsWith(actionType.getName().toLowerCase())) { List info = job.getJobInfo(actionType); if (info != null && !info.isEmpty()) { String m = jobInfoMessage(player, job, actionType); @@ -265,11 +265,9 @@ public class JobsCommands implements CommandExecutor { message.addAll(Arrays.asList(m.split("\n"))); else message.add(m); + } else if (!type.isEmpty()) { + message.add(Jobs.getLanguage().getMessage("command.info.output." + actionType.getName().toLowerCase() + ".none", "%jobname%", job.getJobDisplayName())); } - } else if (type.isEmpty()) { - String myMessage = Jobs.getLanguage().getMessage("command.info.output." + actionType.getName().toLowerCase() + ".none"); - myMessage = myMessage.replace("%jobname%", job.getJobDisplayName()); - message.add(myMessage); } }