Get a Player's view distance

Discussion in 'Plugin Development' started by PVP9dc, Nov 12, 2013.

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

    PVP9dc

    How can i get a Player's view distance?
    Thank you for your help! :D
     
  2. Offline

    The_Doctor_123

    I'm decently sure that is client-sided.
     
  3. Offline

    Goblom

    The_Doctor_123 You are correct, it is impossible to get a players view distance because it is client side.

    PVP9dc You might be able to get the max distance a player can see via a server with the view-distance from the server.properties
     
  4. Offline

    PVP9dc

    Last edited by a moderator: Jun 5, 2016
  5. Offline

    NinjaWAffles

    If you're trying to get a packet (not send one), I don't think this can be done with just the Bukkit API; however, there is a plugin/API called ProtocolLib that allows you to intercept packets whenever they're received. Looking into that might be what you're looking for.
     
Thread Status:
Not open for further replies.

Share This Page