1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

How to get mcpe version supported by the server in the form of code php?

Discussion in 'Development' started by Алексей, Nov 22, 2016.

  1. Алексей

    Алексей Silverfish

    Messages:
    22
    GitHub:
    opkiler22789
    How to get mcpe version supported by the server in the form of code php?

    For the answer will be very grateful.
     
  2. asyven

    asyven Spider

    Messages:
    14
    network/protocol/info.php
    CURRENT_PROTOCOL for each version are different
     
    Алексей likes this.
  3. Алексей

    Алексей Silverfish

    Messages:
    22
    GitHub:
    opkiler22789
    Created a variable this decided to withdraw was 96 and the server version 0.16.0.6 how to navigate? which should bring to 0.15.x?
     
  4. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    Алексей and ifvictr like this.
  5. Алексей

    Алексей Silverfish

    Messages:
    22
    GitHub:
    opkiler22789
  6. Алексей

    Алексей Silverfish

    Messages:
    22
    GitHub:
    opkiler22789
  7. Алексей

    Алексей Silverfish

    Messages:
    22
    GitHub:
    opkiler22789
    My code:
    PHP:
    $v Server::getInstance()->getVersion();
    if (
    $v == "v0.16.*** alpha"){
    but he does not fulfill what I wrote in the {} please tell me
    }
     
  8. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    What about matching the first 6 characters only?
    PHP:
    substr($version06) === "v0.16."
     
    robske_110 (Tim) likes this.
  9. Алексей

    Алексей Silverfish

    Messages:
    22
    GitHub:
    opkiler22789
    thx
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.