From db95e145c0df84804994eca66eac485bb14d8cbb Mon Sep 17 00:00:00 2001 From: chickeneer Date: Tue, 21 Dec 2021 12:31:35 -0600 Subject: [PATCH] (DEPLOYED ACF) Update Javadocs --- .../co/aikar/commands/BungeeRootCommand.html | 2 +- .../aikar/commands/BungeeCommandContexts.html | 56 +++++++++++-------- 2 files changed, 33 insertions(+), 25 deletions(-) diff --git a/docs/acf-bungee/co/aikar/commands/BungeeRootCommand.html b/docs/acf-bungee/co/aikar/commands/BungeeRootCommand.html index f6d78a89..781be547 100644 --- a/docs/acf-bungee/co/aikar/commands/BungeeRootCommand.html +++ b/docs/acf-bungee/co/aikar/commands/BungeeRootCommand.html @@ -136,7 +136,7 @@ implements co.aikar.commands.RootCommand, net.md_5.bungee.api.plugin.TabExecutor

Methods inherited from class net.md_5.bungee.api.plugin.Command

-canEqual, equals, getAliases, getName, hashCode, toString
+canEqual, equals, getAliases, getName, getPermissionMessage, hashCode, setPermissionMessage, toString

Methods inherited from class java.lang.Object

clone, finalize, getClass, notify, notifyAll, wait, wait, wait
diff --git a/docs/acf-bungee/src-html/co/aikar/commands/BungeeCommandContexts.html b/docs/acf-bungee/src-html/co/aikar/commands/BungeeCommandContexts.html index fab7237f..4e65d121 100644 --- a/docs/acf-bungee/src-html/co/aikar/commands/BungeeCommandContexts.html +++ b/docs/acf-bungee/src-html/co/aikar/commands/BungeeCommandContexts.html @@ -78,30 +78,38 @@ 065 colors = colors.filter(color -> finalFilter.equals(ACFUtil.simplifyString(color.name()))); 066 } 067 -068 ChatColor match = ACFUtil.simpleMatch(ChatColor.class, first); -069 if (match == null) { -070 String valid = colors -071 .map(color -> "<c2>" + ACFUtil.simplifyString(color.name()) + "</c2>") -072 .collect(Collectors.joining("<c1>,</c1> ")); -073 -074 throw new InvalidCommandArgument(MessageKeys.PLEASE_SPECIFY_ONE_OF, "{valid}", valid); -075 } -076 return match; -077 }); -078 } -079 -080 @Nullable -081 private co.aikar.commands.contexts.OnlineProxiedPlayer getOnlinePlayer(BungeeCommandExecutionContext c) throws InvalidCommandArgument { -082 ProxiedPlayer proxiedPlayer = ACFBungeeUtil.findPlayerSmart(c.getIssuer(), c.popFirstArg()); -083 if (proxiedPlayer == null) { -084 if (c.hasAnnotation(Optional.class)) { -085 return null; -086 } -087 throw new InvalidCommandArgument(false); -088 } -089 return new co.aikar.commands.contexts.OnlineProxiedPlayer(proxiedPlayer); -090 } -091} +068 ChatColor match = null; +069 String simplified = ACFUtil.simplifyString(first); +070 for (ChatColor chatColor : ChatColor.values()) { +071 String simple = ACFUtil.simplifyString(chatColor.name()); +072 if (simplified.equals(simple)) { +073 match = chatColor; +074 break; +075 } +076 } +077 if (match == null) { +078 String valid = colors +079 .map(color -> "<c2>" + ACFUtil.simplifyString(color.name()) + "</c2>") +080 .collect(Collectors.joining("<c1>,</c1> ")); +081 +082 throw new InvalidCommandArgument(MessageKeys.PLEASE_SPECIFY_ONE_OF, "{valid}", valid); +083 } +084 return match; +085 }); +086 } +087 +088 @Nullable +089 private co.aikar.commands.contexts.OnlineProxiedPlayer getOnlinePlayer(BungeeCommandExecutionContext c) throws InvalidCommandArgument { +090 ProxiedPlayer proxiedPlayer = ACFBungeeUtil.findPlayerSmart(c.getIssuer(), c.popFirstArg()); +091 if (proxiedPlayer == null) { +092 if (c.hasAnnotation(Optional.class)) { +093 return null; +094 } +095 throw new InvalidCommandArgument(false); +096 } +097 return new co.aikar.commands.contexts.OnlineProxiedPlayer(proxiedPlayer); +098 } +099}