✨ Improve injection
This commit is contained in:
parent
e241420ee9
commit
2f077e03f3
15 changed files with 202 additions and 33 deletions
|
|
@ -546,7 +546,7 @@ public final class CloudBrigadierManager<C, S> {
|
|||
commandContext = new CommandContext<>(
|
||||
true,
|
||||
cloudSender,
|
||||
this.commandManager.getCaptionRegistry()
|
||||
this.commandManager
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ class CloudCommodoreManager<C> extends BukkitPluginRegistrationHandler<C> {
|
|||
this.brigadierManager = new CloudBrigadierManager<>(commandManager, () ->
|
||||
new CommandContext<>(
|
||||
commandManager.getCommandSenderMapper().apply(Bukkit.getConsoleSender()),
|
||||
commandManager.getCaptionRegistry()
|
||||
commandManager
|
||||
));
|
||||
this.brigadierManager.brigadierSenderMapper(
|
||||
sender -> this.commandManager.getCommandSenderMapper().apply(
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ class PaperBrigadierListener<C> implements Listener {
|
|||
() -> new CommandContext<>(
|
||||
this.paperCommandManager.getCommandSenderMapper()
|
||||
.apply(Bukkit.getConsoleSender()),
|
||||
this.paperCommandManager.getCaptionRegistry()
|
||||
this.paperCommandManager
|
||||
)
|
||||
);
|
||||
this.brigadierManager.brigadierSenderMapper(
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ final class VelocityPluginRegistrationHandler<C> implements CommandRegistrationH
|
|||
velocityCommandManager.getCommandSenderMapper()
|
||||
.apply(velocityCommandManager.getProxyServer()
|
||||
.getConsoleCommandSource()),
|
||||
velocityCommandManager.getCaptionRegistry()
|
||||
velocityCommandManager
|
||||
)
|
||||
);
|
||||
this.brigadierManager.brigadierSenderMapper(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue