Class OpChatChatExtension
java.lang.Object
io.github.dexrnzacattack.rrdiscordbridge.chat.extension.extensions.OpChatChatExtension
- All Implemented Interfaces:
IChatExtension
-
Field Summary
FieldsModifier and TypeFieldDescriptionnet.dv8tion.jda.api.entities.Webhook
club.minnced.discord.webhook.WebhookClient
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the description of the Chat ExtensiongetName()
Gets the name of the Chat ExtensiononDCMessage
(net.dv8tion.jda.api.entities.Message message) Runs when a message is sent in the Discord servervoid
Runs when the Chat Extension is disabledvoid
onEnable()
Runs when the Chat Extension is enabledonMCMessage
(String message, String player) Runs when a message is sent in MC chat
-
Field Details
-
opcWebhookClient
public club.minnced.discord.webhook.WebhookClient opcWebhookClient -
opcWebhook
public net.dv8tion.jda.api.entities.Webhook opcWebhook
-
-
Constructor Details
-
OpChatChatExtension
-
-
Method Details
-
getName
Description copied from interface:IChatExtension
Gets the name of the Chat Extension- Specified by:
getName
in interfaceIChatExtension
- Returns:
- The chat extension's name
-
getDescription
Description copied from interface:IChatExtension
Gets the description of the Chat Extension- Specified by:
getDescription
in interfaceIChatExtension
- 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 interfaceIChatExtension
-
onDisable
public void onDisable()Description copied from interface:IChatExtension
Runs when the Chat Extension is disabled- Specified by:
onDisable
in interfaceIChatExtension
-
onMCMessage
Description copied from interface:IChatExtension
Runs when a message is sent in MC chat- Specified by:
onMCMessage
in interfaceIChatExtension
- Parameters:
message
- The messageplayer
- The player
-
onDCMessage
Description copied from interface:IChatExtension
Runs when a message is sent in the Discord serverIt's global so that things like OpChat can work properly (sends and receives messages from different channel)
- Specified by:
onDCMessage
in interfaceIChatExtension
- Parameters:
message
- The JDA message- Returns:
- The result
-