aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorwillkroboth <[email protected]>2024-06-17 20:16:55 +0100
committerGitHub <[email protected]>2024-06-17 21:16:55 +0200
commite41d44fa873466064879ebed476d280932379a9c (patch)
treeb265deac1ecb0e1c5893e723226633401a982e23
parent122c9d3843e2ff0f90aae8fc1b16b41d8cc8fde8 (diff)
downloadPaper-e41d44fa873466064879ebed476d280932379a9c.tar.gz
Paper-e41d44fa873466064879ebed476d280932379a9c.zip
Fix `hasFiredAsync` parameter when `AsyncPlayerSendCommandsEvent` is called (#10896)
-rw-r--r--patches/server/0280-Brigadier-Mojang-API.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/server/0280-Brigadier-Mojang-API.patch b/patches/server/0280-Brigadier-Mojang-API.patch
index e955c2ef35..3679e25044 100644
--- a/patches/server/0280-Brigadier-Mojang-API.patch
+++ b/patches/server/0280-Brigadier-Mojang-API.patch
@@ -87,7 +87,7 @@ index d9fc3c25bef251df6a53ee47ec224b07240a931c..2a22827f44dd0d524c22264447959a69
public boolean hasPermission(int level) {
// CraftBukkit start
diff --git a/src/main/java/net/minecraft/commands/Commands.java b/src/main/java/net/minecraft/commands/Commands.java
-index b754c0b3e2cd878fca5f702daca64f837ec83451..f15c388434a0a501f86868de35cc138756975027 100644
+index b754c0b3e2cd878fca5f702daca64f837ec83451..b7c297fa41bb7d3c6a8e82520ec1a84e10f93014 100644
--- a/src/main/java/net/minecraft/commands/Commands.java
+++ b/src/main/java/net/minecraft/commands/Commands.java
@@ -488,6 +488,7 @@ public class Commands {
@@ -102,7 +102,7 @@ index b754c0b3e2cd878fca5f702daca64f837ec83451..f15c388434a0a501f86868de35cc1387
private void runSync(ServerPlayer player, Collection<String> bukkit, RootCommandNode<SharedSuggestionProvider> rootcommandnode) {
// Paper end - Perf: Async command map building
-+ new com.destroystokyo.paper.event.brigadier.AsyncPlayerSendCommandsEvent<CommandSourceStack>(player.getBukkitEntity(), (RootCommandNode) rootcommandnode, false).callEvent(); // Paper - Brigadier API
++ new com.destroystokyo.paper.event.brigadier.AsyncPlayerSendCommandsEvent<CommandSourceStack>(player.getBukkitEntity(), (RootCommandNode) rootcommandnode, true).callEvent(); // Paper - Brigadier API
PlayerCommandSendEvent event = new PlayerCommandSendEvent(player.getBukkitEntity(), new LinkedHashSet<>(bukkit));
event.getPlayer().getServer().getPluginManager().callEvent(event);