All Known Implementing Classes:
OpChatChatExtension, WaypointChatExtension

public interface IChatExtension
  • Method Details

    • getName

      String getName()
      Gets the name of the Chat Extension
      Returns:
      The chat extension's name
    • getDescription

      default String getDescription()
      Gets the description of the Chat Extension
      Returns:
      The chat extension's description
    • onEnable

      void onEnable()
      Runs when the Chat Extension is enabled
    • onDisable

      void onDisable()
      Runs when the Chat Extension is disabled
    • onMCMessage

      ChatExtensionResult onMCMessage(String message, String player)
      Runs when a message is sent in MC chat
      Parameters:
      message - The message
      player - The player
    • onDCMessage

      DiscordChatExtensionResult onDCMessage(net.dv8tion.jda.api.entities.Message message)
      Runs when a message is sent in the Discord server

      It's global so that things like OpChat can work properly (sends and receives messages from different channel)

      Parameters:
      message - The JDA message
      Returns:
      The result