Skip to content

Commit

Permalink
feat: litecommands构造函数Inject支持更多类型
Browse files Browse the repository at this point in the history
  • Loading branch information
huanmeng-qwq committed Aug 25, 2024
1 parent 2423158 commit d358b0e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ public static <B extends LiteCommandsBuilder<CommandSender, LiteKookSettings, B>
return (B)
LiteCommandsFactory.builder(CommandSender.class, new KookLitePlatform(liteBungeeSettings, plugin, ((CommandManagerImpl) plugin.getCore().getCommandManager()).getCommandMap()))
.bind(Core.class, plugin::getCore)
.bind(Plugin.class, () -> plugin)
.bindUnsafe(plugin.getClass(), () -> plugin)
.bind(KBCClient.class, () -> client)
.extension(processorExtension)
.validatorGlobal(new ResultTypeValidator())
.context(Message.class, new KookMessageContextual())
Expand Down

0 comments on commit d358b0e

Please sign in to comment.