-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Convert packet classes to records where possible * Remove Packet#read and no-args packet constructors * Fix assumption for swing in enigma server * Separate packets by c2s/s2c * Don't send disconnect messages for logging-in clients * Add a dev option to log client packets * Update dev menu with the new option * Reorder imports * Add an explanation for the protocol version * Handle logins after validating the packet * Reject changes from unapproved clients * Log actual port on server start * Only notify disconnections of approved clients * Fix some server logging * Set up a network test * Validate usernames * Add a test for the username validation * Update protocol.md * More login tests * Add a test plugin * Ignore messages from unapproved clients * Fix invalid packets crashing the packet handling thread * Add a username field to the server creation dialog * Update protocol file * Don't send packets to unapproved clients * Reset the mapping to the server state on invalid changes * Improve invalid username message * Change protocol version
- Loading branch information
Showing
41 changed files
with
930 additions
and
361 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
10 changes: 5 additions & 5 deletions
10
enigma-server/src/main/java/org/quiltmc/enigma/network/DedicatedEnigmaServer.java
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
Oops, something went wrong.