Interface CommandCaller

All Known Subinterfaces:
Player
All Known Implementing Classes:
ConsoleCommandCaller

public interface CommandCaller
  • Method Summary

    Modifier and Type
    Method
    Description
    An optional of a player.
    void
    Send a message to the command caller
    void
    sendMessage(net.kyori.adventure.text.Component component)
    Send a message to the command caller
  • Method Details

    • getPlayer

      Optional<Player> getPlayer()
      An optional of a player. Returns a Player optional if present.
      Returns:
      Player optional
    • sendMessage

      void sendMessage(net.kyori.adventure.text.Component component)
      Send a message to the command caller
      Parameters:
      component - Message to send
    • sendMessage

      void sendMessage(String message)
      Send a message to the command caller
      Parameters:
      message - Message to send