
OptiView
An updated fork of "SeeMore", that adds in UndergroundViewDistance's view distant limiter while under ground!
OptiView is a fork of SeeMore, and has inspiration from UndergroundViewDistance.
OptiView's main functionality is to set each individual players server-side view distance to their client-side render distance, which is settable by the server owner in the configs.
This allows the server to more efficiently manage it's resources, by allowing the player to set their render distance below the server's default which would free up RAM.
OptiView's Secondary functionality is inspired by UndergroundViewDistance, If you tried to put SeeMore and UndergroundViewDistance together, Underground would forcibly set all players server-side view distance to the Server's default, not something you want to see.
The Secondary functionality activates when the individual player goes below a certain y-level height and sets the server-side view distance to a default of 6, and the simulation distance to a default of 4, which will then be set back to the settings that the player had their client-side render distance when they above a different y-level height.
The Underground functionality can be turned off if you do not require it.
the .yml config file
# Configuration for OptiView.
# Please don't change this!
version: 3
# The delay (in ticks) before a player's view distance is lowered after their client settings change.
# * This stops players overloading the server by constantly changing their view distance.
update-delay: 600
# Whether the plugin should log to the console when it changes a player's view distance.
log-changes: true
# Additional view distance restriction applied underground.
underground:
# Whether underground view distance capping is enabled.
enabled: true
# The delay (in ticks) between checks for whether players are underground.
# Defaults to the same value as update-delay.
update-delay: 600
# Apply the underground cap when a player goes below this Y level.
underground-y: 0.0
# Remove the underground cap when a player goes above this Y level.
surface-y: 20.0
# The maximum view distance allowed while underground.
# Set to -1 to disable the cap without disabling underground checks.
maximum-view-distance: 6
# The simulation distance to apply while underground.
# Set to -1 to use the world's configured simulation distance.
simulation-distance: 4
# These settings can be specified per world.
# * Note: If a world is not listed here or if a setting is missing, it will use the settings listed under the default
# section.
world-settings:
default:
# The maximum view distance a player in this world can have.
# Set to -1 to use the server's configured view distance for this world.
maximum-view-distance: 20
