kiwiyou / craftping Goto Github PK
View Code? Open in Web Editor NEWMinecraft Server List Ping in Rust
License: MIT License
Minecraft Server List Ping in Rust
License: MIT License
From #1. Some servers doesn't send "normal" favicon (that starts with data:image/png;base64,
). Currently craftping returns an Error::UnsupportedProtocol
but more support can be achieved. Any case of those servers would be greatly appreciated.
Since a list of mods installed on the server is sent in the Forge handshake (https://wiki.vg/Minecraft_Forge_Handshake#), it would be cool to have an option to get the data of a Forge handshake
On this site: https://wiki.vg/Server_List_Ping
It states that after the packet ID 0x00, the protocol version should follow 0x0f.
Why are there 4 0xff between those?
I could not find any resources about those 4 0xff
Is there a way to adjust timeout?
Here is the error:
thread panicked at 'byte index 22 is out of bounds of ``', library/core/src/str/mod.rs:107:9
Interesting to note it is ALWAYS byte index 22.
Here are a couple of "servers" that cause this error:
163.18.74.14:25565
163.18.74.140:25565
163.18.74.146:25565
163.18.74.147:25565
163.18.74.149:25565
add a .raw thing that gives you the raw json string that the response packet returns
Hi!
craftping::entity::Response
should implement the clone trait. I don't think there's any practical reason why it shouldn't, and it would allow much easier handling of responses. Currently I'm working around this by implementing my own custom type and converting the Response to that type.
I appreciate you taking the time to read this!
Thanks,
Cleo (she/her)
read_varint can panic at 'attempt to shift left with overflow'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.