Skip to content

Commit

Permalink
perf: 重命名liteKookSettings
Browse files Browse the repository at this point in the history
  • Loading branch information
huanmeng-qwq committed Sep 19, 2024
1 parent 52f099c commit dd5f31a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@ public static <B extends LiteCommandsBuilder<CommandSender, LiteKookSettings, B>
}

@SuppressWarnings("unchecked")
public static <B extends LiteCommandsBuilder<CommandSender, LiteKookSettings, B>> B builder(Plugin plugin, LiteKookSettings liteBungeeSettings) {
public static <B extends LiteCommandsBuilder<CommandSender, LiteKookSettings, B>> B builder(Plugin plugin, LiteKookSettings liteKookSettings) {
KBCClient client = ((CoreImpl) plugin.getCore()).getClient();
HttpAPI httpAPI = plugin.getCore().getHttpAPI();
LiteAnnotationsProcessorExtension<CommandSender> processorExtension = new LiteAnnotationsProcessorExtension<>();
processorExtension
.processor(new PrefixAnnotationResolver<>())
.processor(new ResultAnnotationResolver<>(plugin.getLogger()));
return (B)
LiteCommandsFactory.builder(CommandSender.class, new KookLitePlatform(liteBungeeSettings, plugin, ((CommandManagerImpl) plugin.getCore().getCommandManager()).getCommandMap()))
LiteCommandsFactory.builder(CommandSender.class, new KookLitePlatform(liteKookSettings, plugin, ((CommandManagerImpl) plugin.getCore().getCommandManager()).getCommandMap()))
.bind(Core.class, plugin::getCore)
.bind(Plugin.class, () -> plugin)
.bindUnsafe(plugin.getClass(), () -> plugin)
Expand Down

0 comments on commit dd5f31a

Please sign in to comment.