Interface ClientSendMessageEvents.Command

Enclosing class:
ClientSendMessageEvents
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface ClientSendMessageEvents.Command
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called when the client sends a command, which is whenever the player executes a command including client commands registered with fabric-command-api.
  • Method Details

    • onSendCommandMessage

      void onSendCommandMessage(String command)
      Called when the client sends a command, which is whenever the player executes a command including client commands registered with fabric-command-api. Is not called when command messages are blocked. The command string does not include a slash at the beginning.
      Parameters:
      command - the command that will be sent to the server, without a slash at the beginning.