Protocol: Minecraft: Rename players-related fields

This commit is contained in:
CosminPerRam 2023-01-17 01:01:53 +02:00
parent 4fb1350753
commit f2ae81002e
7 changed files with 24 additions and 24 deletions

View file

@ -20,8 +20,8 @@ Crate:
### Breaking:
Protocols:
- Valve: The rules field is now a `HashMap<String, String>` instead of a `Vec<ServerRule>` (where the `ServerRule` structure had a name and a value fields).
- Valve: `ServerInfo`'s `players`, `max_players` and `bots` have been renamed to `players_online`, `players_maximum` and `players_bots` respectively.
- Valve: `Response`'s `players`, `max_players` and `bots` have been renamed to `players_online`, `players_maximum` and `players_bots` respectively.
- Valve: Structs that contained the `players`, `max_players` and `bots` fields have been renamed to `players_online`, `players_maximum` and `players_bots` respectively.
- Minecraft: Structs that contained the `online_players`, `max_players` and `sample_players` fields have been renamed to `players_online`, `players_maximum` and `players_sample` respectively.
Errors:
- Besides the `BadGame` error, now no other errors returns details about what happened (as it was quite pointless).