From cad3899462bf7c160ce3ce41654b1f6045d2b32a Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Mon, 12 Jun 2023 20:30:16 +1000 Subject: [PATCH] Fix issue from previous commit in SimpleHelpMap By: md_5 --- .../main/java/org/bukkit/craftbukkit/help/SimpleHelpMap.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/help/SimpleHelpMap.java b/paper-server/src/main/java/org/bukkit/craftbukkit/help/SimpleHelpMap.java index a369fd7533..23bd9f09d5 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/help/SimpleHelpMap.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/help/SimpleHelpMap.java @@ -224,7 +224,7 @@ public class SimpleHelpMap implements HelpMap { @Override public void registerHelpTopicFactory(Class commandClass, HelpTopicFactory factory) { - Preconditions.checkArgument(Command.class.isAssignableFrom(commandClass) && CommandExecutor.class.isAssignableFrom(commandClass), "commandClass (%s) must implement either Command or CommandExecutor", commandClass.getName()); + Preconditions.checkArgument(Command.class.isAssignableFrom(commandClass) || CommandExecutor.class.isAssignableFrom(commandClass), "commandClass (%s) must implement either Command or CommandExecutor", commandClass.getName()); topicFactoryMap.put(commandClass, factory); }