Git Product home page Git Product logo

Comments (9)

mindsolve avatar mindsolve commented on June 3, 2024 2

No, it's just that the parameters sometimes named differently between the versions.

I hope this has cleared up your question 😃!

from minestat.

mindsolve avatar mindsolve commented on June 3, 2024

Dear @molanp, welcome to MineStat :)

In most of the language variants of minestat you can already choose the protocol to use for communication with the Minecraft server. Since Bedrock/MCPE only uses only one specific network protocol, you can simply set that.

How exactly that works depends on which variant of MineStat you are using.
For example in Python you can use the parameter query_protocol, in the Java variant requestType and similar in other variants.

For explicitly saying "only Java server" there isn't currently any way that I can think of. If you need that/would like to have that, we can track that as a new feature request.

Best regards,
MindSolve

from minestat.

molanp avatar molanp commented on June 3, 2024

Bedrock servers are not always BEDROCK_RAKNET query_protocol, and it may be EXTENDED_LEGACY (e.g. 2b2t.xin) or something else, and the query_protocol of Java servers is not always JSON, and it seems impossible to identify the server type through a limited number of protocols

from minestat.

molanp avatar molanp commented on June 3, 2024

Oh.Is the slp_protocol obtained by the query the same as the query_protocol in the request parameters, and the above are slp_protocol results

from minestat.

ldilley avatar ldilley commented on June 3, 2024

Is there a specific language for which you are observing this behavior, @molanp? I just successfully tested Geyser (listening on TCP 25565 and UDP 25565) using the Java implementation of MineStat. In this case, the default behavior checks for TCP communication first if port 19132 is not specified. If you want the Bedrock server results, simply specify Bedrock as the protocol to use. See examples below.

TCP (legacy, beta, extended, and JSON SLP) is attempted first:

MineStat ms = new MineStat("minecraft.frag.land");

UDP (Bedrock) is used explicitly even while using the default non-Bedrock server port:

MineStat ms = new MineStat("minecraft.frag.land", 25565, MineStat.Request.BEDROCK);

from minestat.

molanp avatar molanp commented on June 3, 2024

I only see this parameter in Ruby and PHP, it seems that only these two languages are supported?
IMG_20230424_223538

from minestat.

molanp avatar molanp commented on June 3, 2024

oh.THANKS!i found it.

from minestat.

molanp avatar molanp commented on June 3, 2024

No, it's just that the parameters sometimes named differently between the versions.

I hope this has cleared up your question 😃!

It seems that the README.md did not write what options the protocol parameters have

from minestat.

mindsolve avatar mindsolve commented on June 3, 2024

Yeah, that's correct. We are still working on the documentation. Until that's finished, we only have the minimal working example documented (in the readme & most of the time with a example file). For Python it's already documented.

from minestat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.