Releases: HerrMagiic/CSS-CreateCustomCommands
Releases · HerrMagiic/CSS-CreateCustomCommands
v3.0.1
v3.0.1
Features
- Config Option for Command Registration: Added a new configuration option to disable automatic CSS command registration (e.g.,
css_<command>
). This allows you to create custom commands like!ip
without conflicting with commands likeip
in vanilla CS2. - Client Command Execution: Introduced support for executing client-side commands. Check out
ClientCommands.md
for more details. - Client Command from Server: Added functionality to send commands from the server to clients. Refer to
ClientCommands.md
for implementation instructions. - Server Commands: New server commands have been added. Example usages can be found in
ServerCommands.md
. - Updated Example Files: The example files have been updated with more information and clearer descriptions, making it easier to use the plugin.
- Server Kick Example: A server kick example has been added in
ServerCommands.md
to demonstrate kicking players. - Random Tag Example: A new example showcasing random tag functionality has been added. See
Tags.md
for details. - Color Tags for Prefixes: Added the ability to apply color tags to command prefixes for more customization.
Bug Fixes
- Fixed Newline in Language Tag: Resolved an issue where newlines were not working correctly in language tags.
- Fixed Unicode characters not working: Commands and messages now fully support Unicode, enabling broader character compatibility.
Optimizations
- Code Optimizations: Made small optimizations to improve the code's performance.
- Variable Refactoring: Changed most variables to use
var
instead of specific types (likeint
orstring
) for cleaner and more flexible code. - Async Command File Reading: Command files are now read asynchronously, improving performance and responsiveness.
- New Counterstrikesharp version: Compiled plugin with css v276.
v2.1.0
update to css 213 and dotnet 8
v2.0.3
update plugin to Counterstrikesharp version 163
v2.0.2
Urgent Security Update: Version 2.0.2 Released
Immediate Action Required for Users of v2.0.0 and v2.0.1
Key Changes:
- Critical Security Fix: Addressed a significant vulnerability involving the
{PLAYERNAME}
tag in server commands. - Tag Removal: The
{PLAYERNAME}
tag has been removed from server commands for enhanced security. - Continued Use in Messages: The tag remains available for messaging purposes.
Upgrade Importance:
- Essential to upgrade to v2.0.2 immediately to secure your system.
v2.0.1
DON'T USE THIS VERSION! USE v2.0.2+
How to upgrade:
- if you want to display the time for your own CooldownMessage the {TIME} tag has changed to {TIMELEFT}
Fixes:
- Fixed CooldownMessage not working
- Fixed wrong time showing by timeleft on the command
- Removed unnecessary Console.Writelines that where left for debugging
v2.0.0
DON'T USE THIS VERSION! USE v2.0.2+
What's New:
- Alias Creation for Commands: You can now create aliases for commands using a semicolon, as in "Command": "discord;dc".
- New Tag for User ID: Added a new tag {USERID} to retrieve the #userid of the individual who used the command (userid from 'status').
- Support for Tags in Server Commands: Enhanced functionality with the addition of tag support for server commands.
- Command Cooldown Feature: Introduced a command cooldown option. For more information, see Cooldown.json.
- Argument Support for Commands: Implemented support for command arguments, e.g., "Command": "test 1". Details are available at CommandWithArguments.json.
- Toggle Feature for Server Commands: Added the ability to toggle server commands, such as sv_cheats. See ToggleServerCommands.json for more information.
Fixes:
- Example Ignoring in Command Folder: Fixed an issue where Command.example.json file were not ignored when a JSON file was present in the Commands folder.
- Color Display at String Start: Resolved a bug where colors were not displayed when color tag placed at the beginning of a string.
- Command Alias Case Sensitivity: Fixed a bug where the plugin did not recognize duplicated commands due to differing cases in aliases.
- Miscellaneous Minor Fixes: Implemented several small fixes to improve overall functionality.
v1.0.9
What's Changed
- Adding Multiple Json file Support (for more info have a look at the readme)
- Added Json file and Command Validation for better error handling
- small fixes and code refactoring
Full Changelog: v1.0.8...v.1.0.9
v1.0.8
What's New:
- Dependency Injection: Adding dependency injection for better modularity and maintainability.
- Language Support: To enhance user experience across different languages, you have now the ability for language support in your commands. Check out
Example/LanguageSupport.json
for implementation details. - Tag Support for CenterMessage: Enhance your CenterMessage with our new tag support feature. Please note that color tags are not included. Refer to
Example/Tags.json
for available tags.
Fixes:
- Corrected a spelling error: Changed 'Reguire' to 'Require'.
- Wrong path in last release
How to Upgrade:
To upgrade to this version, simply replace 'Reguire' with 'Require' in your Commands.json
file.
Please let me know if there are any specific formatting or additional details you'd like to include in this release description!
v1.0.7
Changes:
-
File Renaming:
- Renamed
Commands.json
toCommands.example.json
to prevent accidental replacement of the original file on the server.
- Renamed
-
Command Duplication Check:
- Introduced a new feature to check for duplicated commands, ensuring a more streamlined and error-free experience.
-
Bug Fixes:
-
MessageCenter Issue:
- Resolved an issue where MessageCenter was not functioning correctly. Please refer to the updated
Commands.example.json
for any necessary adjustments.
- Resolved an issue where MessageCenter was not functioning correctly. Please refer to the updated
-
SteamID Error:
- Fixed a SteamID error that was causing issues. Users should no longer encounter this issue after updating.
-
-
Enhancements:
- Flexible Message Format:
- Messages can now be defined as either an array or a string, providing greater flexibility in message handling.
- Flexible Message Format:
How to Upgrade:
- If you are using the previous version, follow these steps to upgrade:
- Check the
Commands.example.json
for any adjustments related to the MessageCenter fix.
- Check the
[
{
"Title": "Center Message with color",
"Description": "Center Message with color",
"Command": "colorcenter",
"CenterElement": {
"CenterMessage": "<font color='#00ff00'>Cool color here</font>",
"CenterMessageTime": 5
},
"PrintTo": 2
},
--------> TO
{
"Title": "Center Message with color",
"Description": "Center Message with color",
"Command": "colorcenter",
"CenterMessage": {
"Message": "<font color='#00ff00'>Cool color here</font>",
"Time": 5
},
"PrintTo": 2
}
]
Thank you for your continued support! If you encounter any issues or have questions, please feel free to open an issue on GitHub.
v1.0.6
What's Changed
- Adding the missing colors
- Adding mulitple Tags like {SERVERNAME}, {PLAYERS}, {IP}, {PLAYERNAME}, {STEAMID64}...
- Adding Example folder for more examples
Full Changelog: v1.0.5...v.1.0.6