-
-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Implement get_player_by_uuid for server & world Similar to the existing functions named get_player_by_name, these functions will search for a player with a matching Uuid. This implementation is asynchronous and thus better suits being combined with #176, which makes get_player_by_name asynchronous too. * make get_player_by_name async, rename old fn to get_player_by_name_blocking Currently, the existing commands system is all that requires the existing blocking version of get_player_by_name function. After discussing in the Discord, it seems renaming the old blocking method with a suffix of _blocking in addition to adding an async version under the original (unmodified) name of get_player_by_name. * Implement duplicate profile protections * fmt client_packet.rs * use hashmap search for players by uuid; move duplicate uuid check I've confirmed this commit compiles and runs, my client is able to play normally. However, I haven't confirmed it prevents duplicate usernames or UUIDs as of yet. * client_packet: check auth before duplications; check uuid offline too
- Loading branch information
Showing
4 changed files
with
50 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters