Add basic raw packet parsing, hijack ping and status message

This commit is contained in:
timvisee
2021-11-07 14:18:40 +01:00
parent 3dd734cb0f
commit 923e172d0d
6 changed files with 550 additions and 20 deletions

11
src/config.rs Normal file
View File

@@ -0,0 +1,11 @@
/// Public address for users to connect to.
pub const ADDRESS_PUBLIC: &str = "127.0.0.1:9090";
/// Minecraft server address to proxy to.
pub const ADDRESS_PROXY: &str = "127.0.0.1:9091";
/// Server description shown when server is starting.
pub const LABEL_SERVER_SLEEPING: &str = "Server sleeping...\nJoin to start it up §c♥";
/// Server description shown when server is starting.
pub const LABEL_SERVER_STARTING: &str = "Server starting...\nPlease wait §c♥";