mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-17 06:48:23 +01:00
Use CommandSourceStack in AsyncPlayerSendCommandsEvent (#10826)
This commit is contained in:
parent
3bb51e10ab
commit
ef45b03497
1 changed files with 2 additions and 1 deletions
|
@ -109,6 +109,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
+package com.destroystokyo.paper.event.brigadier;
|
+package com.destroystokyo.paper.event.brigadier;
|
||||||
+
|
+
|
||||||
+import com.mojang.brigadier.tree.RootCommandNode;
|
+import com.mojang.brigadier.tree.RootCommandNode;
|
||||||
|
+import io.papermc.paper.command.brigadier.CommandSourceStack;
|
||||||
+import org.bukkit.Bukkit;
|
+import org.bukkit.Bukkit;
|
||||||
+import org.bukkit.entity.Player;
|
+import org.bukkit.entity.Player;
|
||||||
+import org.bukkit.event.HandlerList;
|
+import org.bukkit.event.HandlerList;
|
||||||
|
@ -137,7 +138,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
+ * <p>This is a draft/experimental API and is subject to change.</p>
|
+ * <p>This is a draft/experimental API and is subject to change.</p>
|
||||||
+ */
|
+ */
|
||||||
+@ApiStatus.Experimental
|
+@ApiStatus.Experimental
|
||||||
+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 static final HandlerList handlers = new HandlerList();
|
||||||
+ private final RootCommandNode<S> node;
|
+ private final RootCommandNode<S> node;
|
||||||
|
|
Loading…
Reference in a new issue