Interface CommandSender

All Superinterfaces:
Permissible, ServerOperator

public interface CommandSender extends Permissible
Represents the sender of a command.
  • Method Details

    • sendMessage

      void sendMessage(String message)
      Sends a message to the command sender.
      Parameters:
      message - The message to send
    • sendMessage

      void sendMessage(TextContainer message)
      Sends a message to the command sender.
      Parameters:
      message - The message to send.
    • getServer

      Server getServer()
      Returns the server instance of the command sender.
      Returns:
      The server instance
    • getName

      String getName()
      Returns the name of the command sender.
      Returns:
      The name of the command sender.
    • isPlayer

      boolean isPlayer()
      Checks if this command sender is a player.
      Returns:
      true if the sender is a player