From 7887bddbae1bd9976fb6e6748642cc5946bc0df5 Mon Sep 17 00:00:00 2001 From: willkroboth <46540330+willkroboth@users.noreply.github.com> Date: Mon, 17 Jun 2024 21:16:55 +0200 Subject: [PATCH] Fix `hasFiredAsync` parameter when `AsyncPlayerSendCommandsEvent` is called (#10896) --- patches/server/Brigadier-Mojang-API.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/server/Brigadier-Mojang-API.patch b/patches/server/Brigadier-Mojang-API.patch index 30cb0bc96c..0530a74b04 100644 --- a/patches/server/Brigadier-Mojang-API.patch +++ b/patches/server/Brigadier-Mojang-API.patch @@ -102,7 +102,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 private void runSync(ServerPlayer player, Collection bukkit, RootCommandNode rootcommandnode) { // Paper end - Perf: Async command map building -+ new com.destroystokyo.paper.event.brigadier.AsyncPlayerSendCommandsEvent(player.getBukkitEntity(), (RootCommandNode) rootcommandnode, false).callEvent(); // Paper - Brigadier API ++ new com.destroystokyo.paper.event.brigadier.AsyncPlayerSendCommandsEvent(player.getBukkitEntity(), (RootCommandNode) rootcommandnode, true).callEvent(); // Paper - Brigadier API PlayerCommandSendEvent event = new PlayerCommandSendEvent(player.getBukkitEntity(), new LinkedHashSet<>(bukkit)); event.getPlayer().getServer().getPluginManager().callEvent(event);