Skip to content

v3.0.1 #67

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions ChangeLogs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Changelogs


## v3.0.0

### 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 like `ip` in vanilla CS2.
- **Client Command Execution**: Introduced support for executing client-side commands. Check out [`ClientCommands.md`](https://github.com/HerrMagiic/CSS-CreateCustomCommands/blob/main/Examples/ClientCommands.md) for more details.
- **Client Command from Server**: Added functionality to send commands from the server to clients. Refer to [`ClientCommands.md`](https://github.com/HerrMagiic/CSS-CreateCustomCommands/blob/main/Examples/ClientCommands.md) for implementation instructions.
- **Server Commands**: New server commands have been added. Example usages can be found in [`ServerCommands.md`](https://github.com/HerrMagiic/CSS-CreateCustomCommands/blob/main/Examples/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`](https://github.com/HerrMagiic/CSS-CreateCustomCommands/blob/main/Examples/ServerCommands.md) to demonstrate kicking players.
- **Random Tag Example**: A new example showcasing random tag functionality has been added. See [`Tags.md`](https://github.com/HerrMagiic/CSS-CreateCustomCommands/blob/main/Examples/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 (like `int` or `string`) for cleaner and more flexible code.
- **Async Command File Reading**: Command files are now read asynchronously, improving performance and responsiveness.
2 changes: 1 addition & 1 deletion CustomCommands/CustomCommands.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="CounterStrikeSharp.API" Version="1.0.213">
<PackageReference Include="CounterStrikeSharp.API" Version="1.0.276">
<PrivateAssets>none</PrivateAssets>
<ExcludeAssets>runtime</ExcludeAssets>
<IncludeAssets>compile; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
10 changes: 9 additions & 1 deletion Examples/Tags.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Here is a list of tags you can add to the message. Its also possible to use some
The tags are always in {TAG}


```
```json
[
{
"Title": "Prefix",
Expand Down Expand Up @@ -91,5 +91,13 @@ The tags are always in {TAG}
"Message": "Current players userid: {USERID}", // If you want to use this tag for commands add a # before the tag
"PrintTo": 0
}
},
{
"Title": "Random number",
"Description": "Displays a random number",
"Command": "random",
"Message": "This is a random number: {RNDNO=(10,20)}", // This generates a random number between 10 and 20
"PrintTo": 0
}
]
```
Loading