java.lang.Object
io.github.dexrnzacattack.rrdiscordbridge.chat.extension.extensions.WaypointChatExtension
All Implemented Interfaces:
IChatExtension

public class WaypointChatExtension extends Object implements IChatExtension
  • Field Details

  • Constructor Details

    • WaypointChatExtension

      public WaypointChatExtension(String name)
  • Method Details

    • getName

      public String getName()
      Description copied from interface: IChatExtension
      Gets the name of the Chat Extension
      Specified by:
      getName in interface IChatExtension
      Returns:
      The chat extension's name
    • getDescription

      public String getDescription()
      Description copied from interface: IChatExtension
      Gets the description of the Chat Extension
      Specified by:
      getDescription in interface IChatExtension
      Returns:
      The chat extension's description
    • onEnable

      public void onEnable()
      Description copied from interface: IChatExtension
      Runs when the Chat Extension is enabled
      Specified by:
      onEnable in interface IChatExtension
    • onDisable

      public void onDisable()
      Description copied from interface: IChatExtension
      Runs when the Chat Extension is disabled
      Specified by:
      onDisable in interface IChatExtension
    • onMCMessage

      public ChatExtensionResult onMCMessage(String message, String player)
      Description copied from interface: IChatExtension
      Runs when a message is sent in MC chat
      Specified by:
      onMCMessage in interface IChatExtension
      Parameters:
      message - The message
      player - The player
    • onDCMessage

      public DiscordChatExtensionResult onDCMessage(net.dv8tion.jda.api.entities.Message message)
      Description copied from interface: IChatExtension
      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)

      Specified by:
      onDCMessage in interface IChatExtension
      Parameters:
      message - The JDA message
      Returns:
      The result