Send the available chat commands to clients which can show them
Adds the server side of the chat command list: a view plugin which sends one ChatCommandInfo per available command, and the handler for the request of a client which supports it. Both are limited to the extended protocol, so classic clients don't receive messages they can't understand. The commands come from GetAvailableChatCommandInfos, so a player only learns about the ones he may execute, and deactivated ones stay out. Executing a command needs nothing new: the client sends the composed command line as an ordinary chat message, which the chat message processor already routes to the command without broadcasting it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MSpK6jkyF8ZS5nYXyGwYxA (cherry picked from commit f3a9cb132c295863942bb0f06f40cde231e57907)
This commit is contained in:
@@ -2169,4 +2169,22 @@
|
||||
<data name="MuHelperSettingsInitializationPlugIn_Description" xml:space="preserve">
|
||||
<value>Initializes the MU Helper settings when the player enters the world.</value>
|
||||
</data>
|
||||
<data name="ChatCommandListViewPlugIn_Name" xml:space="preserve">
|
||||
<value>Chat command list view</value>
|
||||
</data>
|
||||
<data name="ChatCommandListViewPlugIn_Description" xml:space="preserve">
|
||||
<value>Sends the chat commands which are available to the player, so that the client can offer them in a user interface.</value>
|
||||
</data>
|
||||
<data name="ChatCommandGroupHandlerPlugIn_Name" xml:space="preserve">
|
||||
<value>Chat command packet group handler</value>
|
||||
</data>
|
||||
<data name="ChatCommandGroupHandlerPlugIn_Description" xml:space="preserve">
|
||||
<value>Handles the packets about chat commands (0xF5).</value>
|
||||
</data>
|
||||
<data name="ChatCommandListRequestHandlerPlugIn_Name" xml:space="preserve">
|
||||
<value>Chat command list request handler</value>
|
||||
</data>
|
||||
<data name="ChatCommandListRequestHandlerPlugIn_Description" xml:space="preserve">
|
||||
<value>Handles the request for the list of chat commands which are available to the player.</value>
|
||||
</data>
|
||||
</root>
|
||||
|
||||
Reference in New Issue
Block a user