▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/View Distance Control
View Distance Control

View Distance Control

PaperMC plugin for per-player view distance control via LuckPerms permission nodes.

21
0

View Distance Control

View Distance Control gives different chunk view distances to different groups of players on your server. Assign larger distances as a perk for donors or VIPs, limit guests to save bandwidth, or let the plugin automatically pull back the view distance for AFK players and restore it when they return. Getting started takes a single LuckPerms command per group; players with no matching permission fall back to the defaults in config.

Note: This plugin controls how much of the world is streamed to each player, not how much the server loads. Players see fewer chunks, but the server still keeps the same area loaded. If you want to reduce server load, lower simulation-distance in server.properties instead.

Dependencies

  • LuckPerms
  • EssentialsX
  • PlaceholderAPI

Configuration

plugins/ViewDistanceControl/config.yml:

default-view-distance: 10       # Fallback view distance
default-afk-view-distance: 4    # Fallback AFK view distance
afk-view-distance-enable: true  # Set to false to disable AFK distance reduction
afk-distance-delay: 5           # Seconds before AFK distance applies (0 = immediate)
notify-player: false            # Notify player when their view distance changes
notify-message: "Your view distance has been changed to %viewdistancecontrol_distance%"
console-log: false              # Log view distance changes to the console
debug: false                    # Log debug messages for diagnosing listener triggers

The notify-message supports & color codes and other PlaceholderAPI placeholders.

Permissions

NodeDescription
viewdistancecontrol.default.<N>Sets normal view distance to N. Highest granted value wins.
viewdistancecontrol.afk.<N>Sets AFK view distance to N. Highest granted value wins.
viewdistancecontrol.max.<N>Caps the resolved view distance to at most N. Lowest granted value wins.
viewdistancecontrol.reloadAllows /vdc reload
viewdistancecontrol.getAllows /vdc get <player> and /vdc list
viewdistancecontrol.afkbypassBypasses AFK view distance reduction

Example — give a VIP group a view distance of 16:

lp group vip permission set viewdistancecontrol.default.16 true

Example — cap a restricted group to at most 6 chunks, regardless of other groups:

lp group restricted permission set viewdistancecontrol.max.6 true

Note: The view distance is capped by view-distance in server.properties. If a value greater than the view-distance is set, the view-distnace would apply.

PlaceholderAPI

PlaceholderDescription
%viewdistancecontrol_distance%Player's current view distance

Commands

CommandDescription
/vdc reloadReloads config and reapplies distances to all online players
/vdc get <player>Shows a player's current view distance and AFK state
/vdc listShows all online players' view distances

Совместимость

Minecraft: Java Edition

26.1.x1.21.x

Платформы

Поддерживаемые окружения

Сервер

Создатели

Детали

Лицензия:MIT
Опубликован:2 недели назад
Обновлён:1 неделю назад
Главная