COWMODSКаталог модов

LightVision

Lightweight night vision plugin. Let players toggle it themselves, or control, block and automate it as staff.

4691обновлён 12 окт. 2026 г.
Механики игрыУправлениеУтилиты

Описание

Discord Release Downloads Servers License

Built with Java 21 Available for Paper Available for Purpur Available for Spigot Available for Bukkit Available for Folia

Chat with us on Discord Available on Codeberg

bStats

LightVision

Night vision as a toggle. Players switch it on and off for themselves with /lv, staff can set it for others, block anyone who abuses it, and let the plugin turn it on automatically whenever someone walks into the dark.

The state survives restarts, blacklisted worlds stay dark no matter what, and the plugin never touches a night vision effect it did not hand out itself - a potion or a beacon keeps working exactly as the player expects.

Requirements

  • Paper, Purpur or Spigot on Minecraft 1.21+
  • Java 21
  • PlaceholderAPI (optional, only for the placeholders)

Commands

/lv and /lightvision are the same command.

CommandDescriptionPermission
/lvToggle your own night visionlv.use
/lv <player> [on|off]Toggle or set night vision for someone elselv.admin
/lv block <player>Block a player from using night visionlv.admin
/lv unblock <player>Lift the block againlv.admin
/lv reloadReload config.yml and apply it to everyone onlinelv.admin

lv.use defaults to true, lv.admin to op. lv.bypass.block (op) protects a player from being blocked by other staff members.

/lv unblock also works on offline players, as long as the server has seen them before. A raw UUID works too.

Placeholders

PlaceholderValue
%lightvision_enabled%true while the player switched night vision on
%lightvision_auto%true while the darkness trigger gives it to them
%lightvision_active%either of the two
%lightvision_blocked%true if staff blocked the player

Configuration

config.yml holds two sections, both documented inline:

  • settings - remember state across restarts, actionbar instead of chat, titles, the blindness flash when night vision goes off, the darkness trigger, and the world blacklist
  • messages - every player-facing text, in MiniMessage format

Darkness trigger

Off by default. Once enabled, players below light-level get night vision automatically and lose it again when it gets bright. Automatic night vision is kept apart from what a player toggled themselves: it is never written to data.yml, it gives way the moment someone uses /lv, and switching the trigger off and running /lv reload takes it away from everyone who currently has it.

Light is checked on movement (at most twice a second per player) and by a background task every check-interval-ticks.

Data

data.yml stores the UUIDs of players whose night vision is on, plus the blocklist. Players who are off are simply absent, so the file stays small. It is written off the main thread, once a minute at most, and on shutdown.

Building

mvn clean package

The shaded jar lands in target/lightvision-<version>.jar. bStats and MiniMessage are shaded and relocated into de.empireblocks.lightVision.libs; spigot-api is provided and stays out of the jar.

License

GNU General Public License v3.0. See LICENSE.

Галерея

Night Vision Off vs OnNight Vision offNight vision on

Последние версии

Все версии →
release

1.4-RELEASE

1.4-RELEASE
12 окт. 2026 г.168Minecraft: 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11, 26.1, 26.1.1, 26.1.2, 26.2, 26.3bukkit, folia, paper, purpur, spigot
Скачать
Что нового
### Added - PlaceholderAPI support: `%lightvision_enabled%`, `%lightvision_auto%`, `%lightvision_active%` and `%lightvision_blocked%`. PlaceholderAPI stays optional. - `darkness-trigger.only-at-night`. With it on, the automatic night vision only kicks in at night in the overworld, so caves stay dark during the day and the Nether and the End never trigger it. Off by default, nothing changes for existing servers. ### Changed - The Folia support from 1.3-BETA is now part of a stable release, so servers on the default `release` update channel get it as well.
beta

LightVision 1.3-BETA

1.3-BETA
24 сент. 2026 г.34Minecraft: 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11, 26.1, 26.1.1, 26.1.2, 26.2bukkit, folia, paper, purpur, spigot
Скачать
Что нового
- Runs on Folia. Work that touches the world or a player now goes through the region and entity schedulers there, and bStats stays off on Folia. Paper, Purpur and Spigot behave as before. - The darkness check hands each player to their own entity scheduler.
release

1.2-RELEASE

1.2-RELEASE
3 сент. 2026 г.101Minecraft: 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11, 26.1, 26.1.1, 26.1.2, 26.2bukkit, paper, purpur, spigot
Скачать
Что нового
### Fixed - **LightVision did not start on Spigot.** Messages are written in MiniMessage, which is part of Adventure, and Adventure ships with Paper only. `onEnable` built the messenger before it registered the command, so on Spigot the plugin died there with a `NoClassDefFoundError` and left `/lv` answering with nothing but the usage line from `plugin.yml`. MiniMessage is now shaded into the plugin and its output is converted to legacy color codes before it is sent, so the same messages go out on both platforms. Gradients, nested tags and formatting keep working. - `/lv block` and `/lv unblock` used a Paper-only lookup to resolve an offline player. Names are now matched against the online players and the players the server already knows about, still without ever asking Mojang. ### Changed - Built against the Spigot API instead of the Paper API. Nothing in the plugin needed Paper, and building against the smaller API means a Paper-only call cannot slip in unnoticed again. - Titles and the actionbar go through the Bukkit and Spigot APIs, which Paper and Spigot both provide. Title timings are unchanged. Paper servers were never affected and see no difference beyond the fixed offline lookup.
release

LightVision 1.1-RELEASE

1.1-RELEASE
15 авг. 2026 г.64Minecraft: 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11, 26.1, 26.1.1, 26.1.2, 26.2bukkit, paper, purpur, spigot
Скачать
Что нового
### Fixed - **The plugin did not load at all.** `plugin.yml` declared `authors:` with a single name where Bukkit expects a list, so the server rejected the plugin with `InvalidDescriptionException: authors are of wrong type`. This affected 1.0 as well. If LightVision never showed up in `/plugins`, this was why. - **The darkness trigger never switched off again.** Automatic night vision was written into the saved player state, so the check meant to take it away could never fire. Anyone who once stood in the dark kept night vision permanently, across restarts, even after the trigger was disabled. It is now tracked separately, never saved, and gives way as soon as the player uses `/lv`. - **`/lv unblock <name>` could freeze the server.** Offline lookups asked Mojang over the network on the main thread. Names now come from the server cache, a raw UUID works too, and unknown names finally report "player not found". - **Night vision from potions and beacons is no longer stripped.** The plugin only removes effects it handed out itself. Blocking a player still clears night vision outright. - **`/lv reload` applies to everyone online.** A changed world blacklist or a disabled darkness trigger used to take effect only after a world change or rejoin. - **Tab completion** no longer shows `block`, `unblock`, `reload` and the full player list to players without `lv.admin`. ### Changed - `data.yml` is written off the main thread, at most once a minute, and only when something changed. Blocking and unblocking still saves immediately. - `data.yml` no longer grows forever - only players who are actually on get stored. - The light check on movement is rate limited to twice a second per player instead of running on every block walked. - Non-text values under `messages` are rejected with a console warning instead of silently becoming the word "true". - LightVision is now open source under the GNU General Public License v3.0: https://github.com/LucasTHCR/LightVision
release

LightVision 1.0-RELEASE

1.0-RELEASE
7 июл. 2026 г.102Minecraft: 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11, 26.1, 26.1.1, 26.1.2, 26.2bukkit, paper, purpur, spigot
Скачать