Interface CommandSender

All Superinterfaces:
ExtraDataHandler<String>
All Known Subinterfaces:
InputSender
All Known Implementing Classes:
ConsoleCommandSender

public interface CommandSender extends ExtraDataHandler<String>
Command Sender Layout Class
  • Method Details

    • getName

      String getName()
      Get Sender Name
      Returns:
      Sender Name
    • sendMessage

      void sendMessage(String... messages)
      Send the Sender a message
      Parameters:
      messages - Messages to send
    • sendMessage

      void sendMessage(TextElement... messages)
      Send the Sender a message
      Parameters:
      messages - Messages to send
    • hasPermission

      boolean hasPermission(String permission)
      Test if the Sender has a permission
      Parameters:
      permission - Permission to test
      Returns:
      Sender's Permission Status
    • command

      default void command(String command)
      Send a command as the Sender
      Parameters:
      command - Command to send