Skip to content

Commit 4b106db

Browse files
authored
Merge pull request #67 from HerrMagiic/dev
v3.0.1
2 parents 4719d44 + 5ae7765 commit 4b106db

File tree

3 files changed

+33
-2
lines changed

3 files changed

+33
-2
lines changed

ChangeLogs.md

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Changelogs
2+
3+
4+
## v3.0.0
5+
6+
### Features
7+
- **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.
8+
- **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.
9+
- **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.
10+
- **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).
11+
- **Updated Example Files**: The example files have been updated with more information and clearer descriptions, making it easier to use the plugin.
12+
- **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.
13+
- **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.
14+
- **Color Tags for Prefixes**: Added the ability to apply color tags to command prefixes for more customization.
15+
16+
### Bug Fixes
17+
- **Fixed Newline in Language Tag**: Resolved an issue where newlines were not working correctly in language tags.
18+
- **Fixed Unicode characters not working**: Commands and messages now fully support Unicode, enabling broader character compatibility.
19+
20+
### Optimizations
21+
- **Code Optimizations**: Made small optimizations to improve the code's performance.
22+
- **Variable Refactoring**: Changed most variables to use `var` instead of specific types (like `int` or `string`) for cleaner and more flexible code.
23+
- **Async Command File Reading**: Command files are now read asynchronously, improving performance and responsiveness.

CustomCommands/CustomCommands.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</PropertyGroup>
1111

1212
<ItemGroup>
13-
<PackageReference Include="CounterStrikeSharp.API" Version="1.0.213">
13+
<PackageReference Include="CounterStrikeSharp.API" Version="1.0.276">
1414
<PrivateAssets>none</PrivateAssets>
1515
<ExcludeAssets>runtime</ExcludeAssets>
1616
<IncludeAssets>compile; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

Examples/Tags.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Here is a list of tags you can add to the message. Its also possible to use some
55
The tags are always in {TAG}
66

77

8-
```
8+
```json
99
[
1010
{
1111
"Title": "Prefix",
@@ -91,5 +91,13 @@ The tags are always in {TAG}
9191
"Message": "Current players userid: {USERID}", // If you want to use this tag for commands add a # before the tag
9292
"PrintTo": 0
9393
}
94+
},
95+
{
96+
"Title": "Random number",
97+
"Description": "Displays a random number",
98+
"Command": "random",
99+
"Message": "This is a random number: {RNDNO=(10,20)}", // This generates a random number between 10 and 20
100+
"PrintTo": 0
101+
}
94102
]
95103
```

0 commit comments

Comments
 (0)