Interface Sender


@NonExtendable public interface Sender
Represents a command sender
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the underlying platform-specific sender object.
    void
    sendMessage(@NotNull String text)
    Sends a message to the sender
    void
    Sends a message to the sender
  • Method Details

    • getSender

      Object getSender()
      Returns the underlying platform-specific sender object. For Spigot, this would be the CommandSender instance
      Returns:
      the underlying sender object
    • sendMessage

      void sendMessage(@NotNull @NotNull String text)
      Sends a message to the sender
      Parameters:
      text - message as text
    • sendMessage

      void sendMessage(String... args)
      Sends a message to the sender
      Parameters:
      args - messages as text