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

Is it possible to trick MCPE Clients?

Discussion in 'Development' started by thelucyclub, Apr 19, 2017.

  1. thelucyclub

    thelucyclub Spider Jockey

    Messages:
    28
    GitHub:
    thelucyclub
    I've been bored recently, and was just wondering if it is possible to trick mcpe clients, into thinking the server has, 600 players, or that the version is CheezIt2.0 any of that seem plausible? Kinda like QueryFacade, but for MCPE not just querying.
     
  2. EdwardHamHam

    EdwardHamHam Skeleton

    Messages:
    962
    GitHub:
    edwardhamham
    Hmm, I'm not sure. If either of them are possible, my guess would be the thing with the number of players. The version however... I don't think so, although I could be wrong.
    OFF TOPIC: Love your profile picture. Android FTW! Wern't you on the old forums?
     
  3. thelucyclub

    thelucyclub Spider Jockey

    Messages:
    28
    GitHub:
    thelucyclub
    Ok, thank you. But I think on old versions of PM RakLibInterface contained the information, given to MCPE clients, no?
    yeah, and was banned. several times.
     
  4. MioTaku

    MioTaku Witch

    Messages:
    69
    GitHub:
    uselesswaifu
    This both are rather simple well the Online Players thing is, for the Version you could change the output when someone types /version
     
  5. thelucyclub

    thelucyclub Spider Jockey

    Messages:
    28
    GitHub:
    thelucyclub
    No, I want MCPE to recognize it. Not just the command. And how to do players? (With plugin.)
     
  6. MioTaku

    MioTaku Witch

    Messages:
    69
    GitHub:
    uselesswaifu
    How does MCPE Detect the Version do you mean it pings the Server if so that used to be possible but Shogi got upset D: and now mcpe wont ping the server if the Version is something weird.

    Code:
    public function onQuery(QueryRegenerateEvent $event)
    {
    $event->setPlayerCount(600);
    }
    
     
  7. EdwardHamHam

    EdwardHamHam Skeleton

    Messages:
    962
    GitHub:
    edwardhamham
    Actually, the client only knows the server's version by pinging it.
    @thelucyclub What exactly do you want it to say for the version?
     
  8. MioTaku

    MioTaku Witch

    Messages:
    69
    GitHub:
    uselesswaifu
    i just fully read your question you could also Spawn a bunch of NPC at Spawn to appear as '600' players i dont know any other way to make the server seem to have more players
     
  9. EdwardHamHam

    EdwardHamHam Skeleton

    Messages:
    962
    GitHub:
    edwardhamham
    NPCs don't effect the player count in the query. Besides, that would likely cause a lot of lag.
     
  10. MioTaku

    MioTaku Witch

    Messages:
    69
    GitHub:
    uselesswaifu
    He said
    So I'm guessing he wants it in-game NPC is the only thing close to that :p
     
  11. thelucyclub

    thelucyclub Spider Jockey

    Messages:
    28
    GitHub:
    thelucyclub
    I think maybe theres a way, but how exactly, i'm not sure. I've seen it on other servers.
     
  12. MioTaku

    MioTaku Witch

    Messages:
    69
    GitHub:
    uselesswaifu
    what are you trying to do please share what you're thinking about
     
  13. thelucyclub

    thelucyclub Spider Jockey

    Messages:
    28
    GitHub:
    thelucyclub
    I'm thinking how to make it so when u see the player coun of a server, it says 600000 when theres only like 2 ppl online
     
  14. MioTaku

    MioTaku Witch

    Messages:
    69
    GitHub:
    uselesswaifu
    just change the players on QueryEvent
     
    thelucyclub likes this.
  15. thelucyclub

    thelucyclub Spider Jockey

    Messages:
    28
    GitHub:
    thelucyclub
    ok. Also, (Sorry!) but how do you set a ttitle? I know LBSG does it when you join a game. It shows up in the middle of your screen. How to do on PlayerJoinEvent?
     
  16. Primus

    Primus Zombie Pigman

    Messages:
    749
    Use code from api3/network branch and call this function
    Code:
    Player::addTitle(string $title, string $subTitle, int $fadeIn = -1, int $stay = -1, int $fadeOut = -1);
    
     
  17. thelucyclub

    thelucyclub Spider Jockey

    Messages:
    28
    GitHub:
    thelucyclub
    how to add that into a plugin? Don't you have to set player?
     
  18. thelucyclub

    thelucyclub Spider Jockey

    Messages:
    28
    GitHub:
    thelucyclub
  19. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    You have to get an instance of Player from somewhere else, typically from an event.
     
  20. 0x15f

    0x15f Baby Zombie

    Messages:
    145
    GitHub:
    0x15f
    From my experience any title sent on PlayerJoinEvent doesn't show on the client. It requires a tack at least 5 ticks after the event is called.
     
    HimbeersaftLP likes this.
  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.