DarkflameUniverse / DarkflameServer

The main repository for the Darkflame Universe Server Emulator project.
https://www.darkflameuniverse.org/
GNU Affero General Public License v3.0
629 stars 171 forks source link

feat: Client commands stubbing #1592

Closed TAHuntling closed 2 months ago

TAHuntling commented 2 months ago

FEAT: Implementing client commands

Description: Implemented a list of commands which are used by the client rather than the server. Essentially made an empty command for the server which parses the command through to the client, which then does its thing (this mostly includes things like emotes and a few config options)

Motivation and Context: Adding the ability to use these commands to continue fleshing out our current command palette and help command.

Type of Changes: Changes made to SlashCommandHandler.cpp to include additional command attributes for client commands, added a declaration in GMZeroCommands.h and definition in GMZeroCommands.cpp

How Has This Been Tested: Running commands in game, which triggers their respective emotes and or other functionality. Additionally, these client commands are listed in the /help menu for users to have access to them and get information as necessary.

EmosewaMC commented 2 months ago

as a note for the testing, these commands have always worked and were never broken. This just prevents a "command not found" from being sent to the clients when one of these is used, and adds a help message for them.