diff options
author | Jason Penilla <[email protected]> | 2024-05-29 14:58:13 -0700 |
---|---|---|
committer | Jason Penilla <[email protected]> | 2024-05-29 14:58:13 -0700 |
commit | 030f29d1c414d621731566370a6264b686c20515 (patch) | |
tree | 3b60ff89005a14adc6445ae1c246f9cddc0129c1 | |
parent | 27d2ed84f43e7637e85f15d880fbad022038413e (diff) | |
download | Paper-AsyncPlayerSendCommandsEvent-CSS.tar.gz Paper-AsyncPlayerSendCommandsEvent-CSS.zip |
Use CommandSourceStack in AsyncPlayerSendCommandsEventAsyncPlayerSendCommandsEvent-CSS
-rw-r--r-- | patches/api/0476-Brigadier-based-command-API.patch | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/patches/api/0476-Brigadier-based-command-API.patch b/patches/api/0476-Brigadier-based-command-API.patch index b665703a8a..d30453ef37 100644 --- a/patches/api/0476-Brigadier-based-command-API.patch +++ b/patches/api/0476-Brigadier-based-command-API.patch @@ -102,13 +102,14 @@ index 0000000000000000000000000000000000000000..28b44789e3be586c4b680fff56e5d2ff +} diff --git a/src/main/java/com/destroystokyo/paper/event/brigadier/AsyncPlayerSendCommandsEvent.java b/src/main/java/com/destroystokyo/paper/event/brigadier/AsyncPlayerSendCommandsEvent.java new file mode 100644 -index 0000000000000000000000000000000000000000..a56ab5a031f8e254bf4e5ea063df0fad2e585206 +index 0000000000000000000000000000000000000000..ba5472a068075f8f7fb5b9bce05e783ca9b4ffdf --- /dev/null +++ b/src/main/java/com/destroystokyo/paper/event/brigadier/AsyncPlayerSendCommandsEvent.java -@@ -0,0 +1,72 @@ +@@ -0,0 +1,73 @@ +package com.destroystokyo.paper.event.brigadier; + +import com.mojang.brigadier.tree.RootCommandNode; ++import io.papermc.paper.command.brigadier.CommandSourceStack; +import org.bukkit.Bukkit; +import org.bukkit.entity.Player; +import org.bukkit.event.HandlerList; @@ -137,7 +138,7 @@ index 0000000000000000000000000000000000000000..a56ab5a031f8e254bf4e5ea063df0fad + * <p>This is a draft/experimental API and is subject to change.</p> + */ -+public class AsyncPlayerSendCommandsEvent <S extends com.destroystokyo.paper.brigadier.BukkitBrigadierCommandSource> extends PlayerEvent { ++public class AsyncPlayerSendCommandsEvent<S extends CommandSourceStack> extends PlayerEvent { + + private static final HandlerList handlers = new HandlerList(); + private final RootCommandNode<S> node; |