Interface CommandSource

All Superinterfaces:
Audience, PermissionSubject, Pointered
All Known Subinterfaces:
ConsoleCommandSource, Player

public interface CommandSource extends Audience, PermissionSubject
Represents something that can be used to run a Command.
  • Method Details

    • sendRichMessage

      default void sendRichMessage(@NotNull @NotNull String message)
      Sends a message with the MiniMessage format to this source.
      Parameters:
      message - MiniMessage content
      See Also:
    • sendRichMessage

      default void sendRichMessage(@NotNull @NotNull String message, @NotNull @NotNull TagResolver @NotNull ... resolvers)
      Sends a message with the MiniMessage format to this source.
      Parameters:
      message - MiniMessage content
      resolvers - resolvers to use
      See Also:
    • sendPlainMessage

      default void sendPlainMessage(@NotNull @NotNull String message)
      Sends a plain message to this source.
      Parameters:
      message - plain message
      API Note:
      This method will not apply any form of parse to the text provided, however, it is recommended not to use legacy color codes as this is a deprecated format and not recommended.