Skip to content
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

Kick the player if the server is outdated #508

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Iaiao
Copy link
Contributor

@Iaiao Iaiao commented Dec 5, 2021

Kick the player if the server is outdated

Status

  • Ready
  • Development
  • Hold

Description

Short description what you did and/or fixed

Related issues

Leave empty if none

Checklist

  • Ran cargo fmt, cargo clippy --all-targets, cargo build --release and cargo test and fixed any generated errors!
  • Removed unnecessary commented out code
  • Used specific traces (if you trace actions please specify the cause i.e. the player)

Note: if you locally don't get any errors, but GitHub Actions fails (especially at clippy) you might want to check your rust toolchain version. You can then feel free to fix these warnings/errors in your PR.

@FussballAndy
Copy link
Contributor

FussballAndy commented Jan 5, 2022

/// The client should be disconnected (sent when
/// the connection was just a "status" ping.)
Disconnect,

Maybe the documentation of InitialHandling::Disconnect should be changed with this pr, because it is not just used for failed status pings anymore. Btw sorry for making this mistake of only checking one side of Protocol version in the first place. 😅

Copy link
Member

@Schuwi Schuwi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@@ -27,6 +27,7 @@ use uuid::Uuid;

use self::proxy::ProxyData;

const VERSION_STRING: &str = "1.16.5";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this not available as a constant on the protocol crate, if not it should be added there?

@HttpRafa
Copy link

HttpRafa commented Feb 5, 2023

The project is dead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants