From f8e924060be5b6f7638c21cedc24c89d684a2925 Mon Sep 17 00:00:00 2001 From: Risto Lahtela <24460436+Rsl1122@users.noreply.github.com> Date: Tue, 1 Sep 2020 11:53:22 +0300 Subject: [PATCH] Fixed some issues with the new commands --- .../src/main/java/com/djrapitops/plan/commands/PlanCommand.java | 2 +- .../java/com/djrapitops/plan/commands/use/HelpFormatter.java | 1 - .../com/djrapitops/plan/settings/locale/lang/CommandLang.java | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Plan/common/src/main/java/com/djrapitops/plan/commands/PlanCommand.java b/Plan/common/src/main/java/com/djrapitops/plan/commands/PlanCommand.java index 0b96a9da6..d845a9c55 100644 --- a/Plan/common/src/main/java/com/djrapitops/plan/commands/PlanCommand.java +++ b/Plan/common/src/main/java/com/djrapitops/plan/commands/PlanCommand.java @@ -289,7 +289,7 @@ public class PlanCommand { private Subcommand webUsersCommand() { return Subcommand.builder() - .aliases("users", "webusers") + .aliases("users", "webusers", "web") .requirePermission(Permissions.USERS) .description(locale.getString(HelpLang.USERS)) .inDepthDescription(locale.getString(DeepHelpLang.USERS)) diff --git a/Plan/common/src/main/java/com/djrapitops/plan/commands/use/HelpFormatter.java b/Plan/common/src/main/java/com/djrapitops/plan/commands/use/HelpFormatter.java index 62b3454d7..5b73986d3 100644 --- a/Plan/common/src/main/java/com/djrapitops/plan/commands/use/HelpFormatter.java +++ b/Plan/common/src/main/java/com/djrapitops/plan/commands/use/HelpFormatter.java @@ -44,7 +44,6 @@ public class HelpFormatter { String m = colors.getMainColor(); String s = colors.getSecondaryColor(); String asString = subcommands.stream() - .filter(cmd -> cmd.getDescription() != null) .map(cmd -> m + mainCommand + " " + cmd.getPrimaryAlias() + (sender.supportsChatEvents() ? "" : " " + cmd.getArgumentsAsString()) + "***" + diff --git a/Plan/common/src/main/java/com/djrapitops/plan/settings/locale/lang/CommandLang.java b/Plan/common/src/main/java/com/djrapitops/plan/settings/locale/lang/CommandLang.java index d9abd079a..16183afc7 100644 --- a/Plan/common/src/main/java/com/djrapitops/plan/settings/locale/lang/CommandLang.java +++ b/Plan/common/src/main/java/com/djrapitops/plan/settings/locale/lang/CommandLang.java @@ -72,7 +72,7 @@ public enum CommandLang implements Lang { LINK_REGISTER("Cmd - Link Register", "Register page: "), HEADER_HELP("Cmd Header - Help", "> §2/${0} Help"), - FOOTER_HELP("Cmd Footer - Help", "> §7Hover over command or arguments to learn more about them."), + FOOTER_HELP("Cmd Footer - Help", "§7Hover over command or arguments to learn more about them."), HEADER_SEARCH("Cmd Header - Search", "> §2${0} Results for §f${1}§2:"), HEADER_ANALYSIS("Cmd Header - Analysis", "> §2Analysis Results"), HEADER_INFO("Cmd Header - Info", "> §2Player Analytics"),