geforkt von Mirrors/Paper
Fix issue from previous commit in SimpleHelpMap
By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Ursprung
ff78bf30f6
Commit
cad3899462
@ -224,7 +224,7 @@ public class SimpleHelpMap implements HelpMap {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void registerHelpTopicFactory(Class commandClass, HelpTopicFactory factory) {
|
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);
|
topicFactoryMap.put(commandClass, factory);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren