Command Framework with source generation for the chat commands#939
Merged
Conversation
NemuruYama
added a commit
to NemusForks/Multiplayer-Locale
that referenced
this pull request
May 28, 2026
Manaually translated: - English - Dutch The rest was done using AI and google translate. I figured a translation, even if it is bad, is better than none. German was translated using google translate and AI, but my German is okay-ish, so I made some changes.
Author
|
Should be done first probably, so that we can update the correct languages. |
notfood
requested changes
May 28, 2026
This reverts commit f4b4cf2.
notfood
approved these changes
May 30, 2026
notfood
pushed a commit
to rwmt/Multiplayer-Locale
that referenced
this pull request
Jun 5, 2026
* Translations for the rwmt/Multiplayer#939 Manaually translated: - English - Dutch The rest was done using AI and google translate. I figured a translation, even if it is bad, is better than none. German was translated using google translate and AI, but my German is okay-ish, so I made some changes. * Update Polish/Keyed/Multiplayer.xml Co-authored-by: Jakub Bojarski <jakubbojarski92@gmail.com> * Update German/Keyed/Multiplayer.xml Like I said "okay-ish". Thanks :D Co-authored-by: Maximilian Hotter <Maxsiom@users.noreply.github.com> --------- Co-authored-by: Jakub Bojarski <jakubbojarski92@gmail.com> Co-authored-by: Maximilian Hotter <Maxsiom@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A small command framework to make the command infra a bit less brittle and removing the need for manual registration of commands.
It uses source generation and is based on a command framework that I use for my own Discord/Steam bot framework.
Changelog
ChatCommandContracts, as a shared library between the SourceGen and the Mod./mods,/announce,/players,/list,/resync,/status,/pause,/unpause,/speed,/whois.<username>renders correctly./resync./helpto usable commands./help,/?,/joinpoint,/kick,/stop./helpoutput to use generated command metadata./kick,/whois, and/resyncto receive resolved players instead of raw username strings.Source/Common/ChatCommands.csimplementation.