BestViewDistance (Allow your server to support a view distance of 32 chunks !)
- Native Minecraft Version:
- Tested Minecraft Versions:
- Source Code:
- Languages Supported:
- All. You can translate it by yourself.
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.
Download Paper if you want to run this plugin.
ProtocolLib is needed ONLY for versions below 1.13.2
Commands / Permissions
Default ConfigCode (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 !
# ╔╗ ┌─┐┌─┐┌┬┐ ╦ ╦┬┌─┐┬ ┬ ╔╦╗┬┌─┐┌┬┐┌─┐┌┐┌┌─┐┌─┐
# ╠╩╗├┤ └─┐ │ ╚╗╔╝│├┤ │││ ║║│└─┐ │ ├─┤││││ ├┤
# ╚═╝└─┘└─┘ ┴ ╚╝ ┴└─┘└┴┘ ═╩╝┴└─┘ ┴ ┴ ┴┘└┘└─┘└─┘
# - 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
# 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.
# 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.
# 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
- 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
Best View Distance 9.6
Uses view distance to boost performances/ping ! Allow your server to support a view distance of 32 !
- Added a config option + Optimizations. Dec 9, 2018 at 11:49 AM
- A lot of bugfixes Dec 8, 2018 at 4:42 PM
- MORE OPTIMIZATIONS ! Added config options ! Deleted useless dependencies ! Dec 7, 2018 at 9:58 PM