Best View Distance 9.6

Uses view distance to boost performances/ping ! Allow your server to support a view distance of 32 !

  1. Lxct
    Native Minecraft Version:
    1.13
    Tested Minecraft Versions:
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    • 1.13
    Source Code:
    https://github.com/Lxct/BestViewDistance
    Languages Supported:
    All. You can translate it by yourself.
    BestViewDistance (Allow your server to support a view distance of 32 chunks !)
    A view distance plugin for Paper. Created to boost ping/tps and view distance.


    If you're using the plugin, make sure your view-distance inside spigot.yml and server.proprieties is set to 4 or 3 !
    IT REDUCES LAGS FROM THE "Players needing chunks" EVENT.


    How it works ?

    This plugin chooses the best view distance for your players. The view distance is calculated based on your ping and the TPS of the server. If the TPS are low, the view distance is reduced by a percentage called "reduction indice". The reduction indice changes according to the TPS of the server.

    This plugin reduces players lag, reduces players ping and optimizes your server with a better view distance.

    Dependencies

    Download Paper if you want to run this plugin.
    ProtocolLib is needed ONLY for versions below 1.13.2

    Commands / Permissions
    Code (Text):

    /view server => Get reduction indice.
    /view tps => Get server's tps.
    /view ping <player> => Get player ping.
    /view <player> => Get player actual view distance and his max view distance.
    /view => Get help

    Permission : "view.check"

    /view reload => Reload plugin config. Need "view.reload"
    /vdist => Allows your players to see their own view distance. Need "view.info"
    /vping => Allows your players to see their own ping. Need "view.info"

    Permission for update checker : "view.update"

    Bypass algorithm : "view.set.x" (3 to 32)
    (Example : view.set.15 set a view dist of 15 chunks)
    Does not work with "*"/"*.*" permissions nodes !
     
    Default Config
    Code (YAML):

    #   ╔╗ ┌─┐┌─┐┌┬┐  ╦  ╦┬┌─┐┬ ┬  ╔╦╗┬┌─┐┌┬┐┌─┐┌┐┌┌─┐┌─┐
    #   ╠╩╗├┤ └─┐ │   ╚╗╔╝│├┤ │││   ║║│└─┐ │ ├─┤││││  ├┤
    #   ╚═╝└─┘└─┘ ┴    ╚╝ ┴└─┘└┴┘  ═╩╝┴└─┘ ┴ ┴ ┴┘└┘└─┘└─┘
    #       - Get a Better View Distance, By LXCT. -
    #=======================================================
    # (Don't change Performances unless You Know what you're doing !)
    # Need some help to config ?
    # Read this :
    #
    #
    # Version: 1.2 # Version of the config file. DON'T TOUCH THIS
    # ViewDistance:
    #   Min: 4 # Min View Distance. Keep it above 4.
    #   Max: 16 # Max View Distance. Player can't get above 32.
    #   AFK : 3 # View Distance of "AFK" players. You can't assign a value less than 3.
    #   OnLogin: 4 # View Distance assigned on login. I advise you to set the same value as Min
    #   OnTeleport: 4 # View distance when the player teleport himself (I suggest you to keep this value between 3 and 8) Reduce bandwidth lags
    #   UnsetTeleportViewDelay: 3 # Delay in seconds to unset OnTeleport view when teleport.
    #   CalculationDelay: 1 # Delay between ASYNC calculations. Keep it above 1. NEED RESTART, DOES NOT AFFECT PERFORMANCES.
    #   SetViewDelay: 15 # Delay between applying calculations. Keep it above 5. A little number will make view distance change faster. NEED RESTART, AFFECT PERFORMANCES.
    # Performances:
    #   PingForReduction: 550 # If your ping is higher than this value, then your view distance will be reduced. Keep it above 400.
    #   PingForAugmentation: 90 # If your ping is less than this value, then your view distance will be increased. Keep it below 100.
    #   TPSLimit: 19.5 # If the tps are above this value, the ReductionIndice is reduced. If the tps are below this value, the ReductionIndice will increase.
    #   TPSChangeIndice: 0.01 # How much the reduction indice will be decreased/increased par calculations. Keep this value between 0.1 and 0.01 (10% and 1%) 0.05 = 5%
    #   MaxReductionIndice: 0.75 # Maximum value of the reduction indice.
    #   AFKTimer: 90 # Seconds before getting "AFK" and get his view distance reduced to "Min" value. Keep this value over 60. (Doesn't affect gameplay)
    #   UseTasks: true # Use Task instead of ScheduleSync. Set this to "false" will kill lags, but the view distance will take more time to change. AFFECT PERFORMANCES A LOT.
    # Other:
    #   ReduceViewOnTeleport: true # Reduce the view when player teleport himself. (Portals too) NEED RESTART
    #   HideVdistLine4: false # Hide vdist.line4 (in messages.yml) when players uses /vdist
    #   SafePing: 1 # Minimum ping required for calculations. Set it to 0 or -1 for local hosting. Keep this value below 1
    #   CheckUpdate: true # You should keep this to true. It check if your plugins version is the latest. THIS DOES NOT IMPACT PERFORMANCES, NEED RESTART
    #   Metrics: true # Please keep this to true. Metrics is anonymous and it helps developers stay motivated. THIS DOES NOT IMPACT PERFORMANCES, NEED RESTART
    #
    #
    #
    # Please restart your server the first time you're using this plugin. Don't reload.
    #
    # Problems ? Performance issues ? Wanna say thanks ? ;)
    # Add me on Discord ! Lxct#9971
    #

    Version
    : 1.2
    ViewDistance
    :
      Min
    : 4
      Max
    : 16
      AFK
    : 3
      OnLogin
    : 4
      OnTeleport
    : 4
      UnsetTeleportViewDelay
    : 3
      CalculationsDelay
    : 1
      SetViewDelay
    : 15
    Performances
    :
      PingForReduction
    : 550
      PingForAugmentation
    : 90
      TPSLimit
    : 19.5
      TPSChangeIndice
    : 0.01
      MaxReductionIndice
    : 0.75
      AFKTimer
    : 90
      UseTasks
    : true
    Other
    :
      ReduceViewOnTeleport
    : true
      HideVdistLine4
    : false
      SafePing
    : 1
      CheckUpdates
    : true
      Metrics
    : true
     
    - Garden V2 : http://garden-minecraft.com
    - Want to add yours ? => Lxct#9971


    Want to ask something ? Or just want to say hello ? Wanna show me your server ?
    Add me on Discord => Lxct#9971
    I'd like to hear your comments ! <3

    Screens :
    2018-10-30_14.04.54.png 2018-10-30_17.57.58.png 2018-12-01_09.00.48.png

Recent Reviews

  1. Zefferis
    Zefferis
    5/5,
    Version: 9.6
    An amazingly interesting plugin. I was genuinely surprised that this was possible so adding it to a server was just great.

    Thanks for the work!
    1. Lxct
      Author's Response
      Don't hesitate if you have some ideas about features to add.
      I'm glad this plugin can help you.
      Thanks for your review!
  2. NoWing31
    NoWing31
    5/5,
    Version: 9.3
    Excellent!
    Support at the top by the creator.
    Could justify by itself the transition to Paper.
    -------------------------------
    Excellent !
    Support au top par le créateur.
    Pourrait justifier à lui seul le passage à Paper
    1. Lxct
      Author's Response
      Thanks for your review ! I'm glad you like this plugin ! =)
      -
      Merci pour ta note, je suis heureux que ce plugin te plaise =)
  3. Minestick
    Minestick
    5/5,
    Version: 9.3
    Tried. But would this affect mob spawn and other mechanisms?
    ---------------------------
    1. Lxct
      Author's Response
      Mob spawning and so on are processed by Paper, Spigot, Bukkit and can be tweaked in config.
      Btw, thanks for your review!
  4. dionmanaog
    dionmanaog
    5/5,
    Version: 9.0
    i had not tryed cause its not working for me i use tacospigot or beerspigot
    well you add that feature?
    1. Lxct
      Author's Response
      If theses APIs are forks of Paper, this should works.
      Thanks for your review!
  5. TooL11
    TooL11
    5/5,
    Version: 8.4
    I just want to say that you're doing a great job. This plugin will be huge one day. You saved my MC experience by miles. Thank you.
    1. Lxct
      Author's Response
      Thanks for your review!
      Do not hesitate to send me your ideas, I glad you like this plugin =)
  6. howtoNhut
    howtoNhut
    5/5,
    Version: 8.0
    ===============================Please support 1.8? :(
    ===============================
    1. Lxct
  7. k9lego
    k9lego
    5/5,
    Version: 7.5
    I seriously didn't know I needed this plugin until I saw it! Every server should have a feature like this!
    1. Lxct
      Author's Response
      Thanks for your review !
      I'm glad this can help you :)
  8. SladeHazard
    SladeHazard
    5/5,
    Version: 6.5
    1. Lxct
      Author's Response
      Hi ! This plugin requires Paper to works.
      Paper is a fork of Spigot.
      More information here:
      https://papermc.io/
      Well, i don't think I'm gonna add Spigot support because Spigot doesn't allow you to change per players view distance.
  9. B4TT3RY__
    B4TT3RY__
    5/5,
    Version: 6.1
    Very Nice Plugin, Awesome Idea, I Love it!
    =====================================
    1. Lxct
      Author's Response
      Thanks for your review!
  10. doggie99
    doggie99
    5/5,
    Version: 6.1
    Amazing plugin developer. Responded instantly on discord to my issue! Would recommend this plugin to anyone!
    1. Lxct
      Author's Response
      I'm glad this plugin can help you.
      Thanks for your review !