Is there any way to check client info?

Discussion in 'Plugin Development' started by nbrandwine, Jan 31, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    nbrandwine

    I'm wondering if there's a way a plugin can check a player's client info, such as get the name of the jar/version they're running.
     
  2. Offline

    mythbusterma

    @nbrandwine

    You can check what version they're running by if they connect to your server.
     
    nbrandwine likes this.
  3. Offline

    nverdier

    @nbrandwine Yes. But you have to use packets. To get the client's version, you use
    Code:
    ((CraftPlayer) player).getHandle().playerConnection.networkManager.getVersion()
    Here are the return values:
    • 1.7.2 - 4
    • 1.7.6 - 5
    • 1.8 - 47
     
  4. Offline

    nbrandwine

  5. Offline

    nverdier

    @nbrandwine No, I'm nearly sure. Are you trying to check is a player is using hacks? Impossible, I'm pretty sure, do it it the way you're trying to.
     
  6. Offline

    mythbusterma

  7. Offline

    nbrandwine

    Uh... I have no idea. I'll look but if you know... pls-hlp.

    I'm just trying to check the name of the client's jar. As stated by buster above, I need to check stuff first. :p
    Any help is helpful. :D

    EDIT by TImtower: merged posts
     
    Last edited by a moderator: Jan 31, 2015
  8. Offline

    mythbusterma

    @nbrandwine

    It's not on that list. It isn't possible.
     
  9. Offline

    nbrandwine

    Crap. This one server banned me because I had my own custom client. They said they got the name of my client and banned me.
     
  10. Offline

    nverdier

    @nbrandwine They probably just caught you hacking and decided to tell you that for some reason.
     
  11. Offline

    nbrandwine

    The only hack I used was fullbright and a mob-esp. I don't pvp much.
     
  12. Offline

    nverdier

    @nbrandwine Hmmm... There's no way to find the name of the jar file the client is using, but maybe some other way... I honestly have no idea, but I'll try to look into it and get back to you if I find anything.
     
  13. Offline

    nbrandwine

    thank you very much!
     
Thread Status:
Not open for further replies.

Share This Page