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

Client ID

Discussion in 'Development' started by Ragnok123, Nov 29, 2016.

  1. Ragnok123

    Ragnok123 Silverfish

    Messages:
    22
    GitHub:
    Ragnok123
    Hello, I'm trying to make auth with clientId, when player joins, plugin will save his clientId. It saves, but in clientid.txt is another clientid. Do you know why?
     
  2. InspectorGadget

    InspectorGadget Zombie Pigman

    Messages:
    462
    GitHub:
    InspectorGadget
    You implemented this?
    PHP:
    $player->getClientId();
     
  3. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    You don't "implement" a function like this. You "use" a function.
    Can you provide more information? What is the exact type and value the plugin tries to save, and what is the exact value found in clientid.txt?
    Try using var_dump() or even json_encode() to give readable values. The later is recommended if you are sure that the value is a string, since it can show some non-ASCII characters too.
     
  4. Ragnok123

    Ragnok123 Silverfish

    Messages:
    22
    GitHub:
    Ragnok123
    Thanks you. It helped.
     
  5. imYannic

    imYannic Baby Zombie

    Messages:
    113
    Have you restarted MCPE? Settings like ClientID wont be changed ingame.
     
  6. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110
    What?
     
  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.