OptiView 是 SeeMore 的一个分支,并受到 UndergroundViewDistance 的启发。
OptiView 的主要功能是将每个玩家的服务端视距设置为其客户端渲染距离,该值可由服务器管理员在配置文件中设定。
这允许服务器更高效地管理资源,通过允许玩家将他们的渲染距离设置为低于服务器的默认值,从而释放内存。
OptiView 的次要功能灵感来源于 UndergroundViewDistance。如果你尝试将 SeeMore 和 UndergroundViewDistance 一起使用,UndergroundViewDistance 会强制将所有玩家的服务端视距设置为服务器的默认值,这不是你想要的结果。
当单个玩家低于某个 Y 轴高度时,次要功能激活,并将服务端视距设置为默认的 6,模拟距离设置为默认的 4,然后当玩家高于另一个 Y 轴高度时,会恢复为他们客户端渲染距离时的设置。
如果你不需要地下功能,可以将其关闭。
.yml 配置文件
# OptiView 的配置。
# 请不要更改此项!
version: 3
# 在玩家客户端设置更改后,降低其视距前的延迟(以刻为单位)。
# * 这防止玩家通过不断更改视距来过载服务器。
update-delay: 600
# 是否在更改玩家视距时记录到控制台。
log-changes: true
# 应用于地下的额外视距限制。
underground:
# 是否启用地下视距限制。
enabled: true
# 检查玩家是否在地下之间的延迟(以刻为单位)。
# 默认与 update-delay 的值相同。
update-delay: 600
# 当玩家低于此 Y 轴高度时应用地下限制。
underground-y: 0.0
# 当玩家高于此 Y 轴高度时移除地下限制。
surface-y: 20.0
# 在地下时允许的最大视距。
# 设置为 -1 以禁用限制而不禁用地下检查。
maximum-view-distance: 6
# 在地下时应用的模拟距离。
# 设置为 -1 以使用世界配置的模拟距离。
simulation-distance: 4
# 这些设置可以按世界指定。
# * 注意:如果此处未列出某个世界或缺少某项设置,它将使用 default 部分下列出的设置。
world-settings:
default:
# 此世界中玩家可拥有的最大视距。
# 设置为 -1 以使用为此世界配置的服务器视距。
maximum-view-distance: 20
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
评论 0
登录后参与评分
还没有评论,来抢沙发吧