Class PlayerAvailableCommandsEvent


  • @Beta
    public class PlayerAvailableCommandsEvent
    extends java.lang.Object
    Allows plugins to modify the packet indicating commands available on the server to a Minecraft 1.13+ client.
    • Constructor Summary

      Constructors 
      Constructor Description
      PlayerAvailableCommandsEvent​(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
      Player getPlayer()  
      com.mojang.brigadier.tree.RootCommandNode<?> getRootNode()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PlayerAvailableCommandsEvent

        public PlayerAvailableCommandsEvent​(Player player,
                                            com.mojang.brigadier.tree.RootCommandNode<?> rootNode)
        Constructs an available commands event.
        Parameters:
        player - the targeted player
        rootNode - the Brigadier root node
    • Method Detail

      • getPlayer

        public Player getPlayer()
      • getRootNode

        public com.mojang.brigadier.tree.RootCommandNode<?> getRootNode()