Appended the aliases.json.default with the gamemodes, added "get_gamemodes" and "aliases gamemodes" #149
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.
Just a little helper to remind an on-again-off-again server owner and his various mods/captains what the game modes are for the switchmap command.
This code is currently running on our community server (Bowels).
Running
aliases
returns the normal list, including this:This block outputs as a result of ".aliases" or ".aliases gamemodes" by itself.
It shows up in the help section:
The example file "aliases.json.example" now includes the full list.
There is merit for this to be added as either:
A) It's own json -
gamemodes.json.example
, for example which would be a little more work, but perhaps nicer - thengamemodes
could be it's own commandB) Append the information to the
info
command, which is how I used to have it in my 2021 branch of the code; but this didn't display as nicely.C) Append the information somewhere else, like the lists section, and have a separate command to invoke the prompt for gamemodes.
As a UX improvement, it would be good once this is implemented, to have detection on
switchmap/map
commands where the game_mode is malformed, it spits out the valid gamemodes to the user.