mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Give ChatBots access to plugin channels.
Chatbots may find it useful to send messages over plugin channels. This allows REGISTERing, UNREGISTERing, and sending over plugin channels, with built-in checking if the server also registered the channel (which can be disabled by the bot if needed). Unused channels are UNREGISTERed when a bot is disabled.
This commit is contained in:
parent
bdbd8ab0b8
commit
1ea8f119d9
5 changed files with 215 additions and 3 deletions
|
|
@ -303,6 +303,10 @@ namespace MinecraftClient.Protocol.Handlers
|
|||
readNextVarShort(packetData);
|
||||
}
|
||||
}
|
||||
|
||||
// The remaining data in the array is the entire payload of the packet.
|
||||
handler.OnPluginChannelMessage(channel, packetData.ToArray());
|
||||
|
||||
if (forgeInfo != null)
|
||||
{
|
||||
if (channel == "FML|HS")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue