Class PlayerAvailableCommandsEventImpl
- java.lang.Object
-
- com.velocitypowered.api.event.command.PlayerAvailableCommandsEventImpl
-
- All Implemented Interfaces:
PlayerAvailableCommandsEvent,Event
@Beta public class PlayerAvailableCommandsEventImpl extends Object implements PlayerAvailableCommandsEvent
Allows plugins to modify the packet indicating commands available on the server to a Minecraft 1.13+ client.
-
-
Constructor Summary
Constructors Constructor Description PlayerAvailableCommandsEventImpl(Player player, com.mojang.brigadier.tree.RootCommandNode<?> rootNode)Constructs an available commands event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Playerplayer()com.mojang.brigadier.tree.RootCommandNode<?>rootNode()
-
-
-
Constructor Detail
-
PlayerAvailableCommandsEventImpl
public PlayerAvailableCommandsEventImpl(Player player, com.mojang.brigadier.tree.RootCommandNode<?> rootNode)
Constructs an available commands event.- Parameters:
player- the targeted playerrootNode- the Brigadier root node
-
-
Method Detail
-
player
public Player player()
- Specified by:
playerin interfacePlayerAvailableCommandsEvent
-
rootNode
public com.mojang.brigadier.tree.RootCommandNode<?> rootNode()
- Specified by:
rootNodein interfacePlayerAvailableCommandsEvent
-
-