Toggleable night vision with a simple and lightweight command system
A lightweight and configurable night vision toggle plugin for Minecraft servers.
LsNightVision allows players (or admins) to toggle infinite night vision with a simple command. The plugin is designed to be lightweight, configurable, and compatible with modern Paper-based servers.
/nv&#ffffff) and standard color codes (&)/nvToggle your own night vision.
/nv <player>Toggle night vision for another player.
/nvreloadReload the plugin configuration.
| Permission | Description | Default |
|---|---|---|
nightvision.use |
Allows players to toggle their own night vision | OP |
nightvision.other |
Allows toggling night vision for other players | OP |
nightvision.reload |
Allows reloading the plugin config | OP |
The plugin is fully configurable through config.yml.
Example configuration:
# If enabled, players who toggle night vision will keep it after
# death and when reconnecting to the server.
remember-toggle: true
# If true, Night Vision particles will appear around the player.
nv-particles: false
# If true, the Night Vision icon will appear in the player's HUD.
nv-hud-icon: false
# If true, players with toggled night vision cannot remove the effect
# by drinking milk.
prevent-milk-removal: true
# Action Bar Messages.
action-bar:
enabled: true
enabled-self: "&aNight vision enabled"
disabled-self: "&cNight vision disabled"
enabled-other: "7ff55Night vision enabled for &f%player%"
disabled-other: "&#ff5555Night vision disabled for &f%player%"
# Chat Messages.
chat:
enabled: false
enabled-self: "&aNight vision enabled"
disabled-self: "&cNight vision disabled"
enabled-other: "7ff55Night vision enabled for &f%player%"
disabled-other: "&#ff5555Night vision disabled for &f%player%"
reload-message: "&aLsNightVision configuration reloaded."
When a player toggles night vision:
The plugin applies an infinite NIGHT_VISION potion effect.
If remember-toggle is enabled, the plugin stores the player and reapplies night vision when they:
This ensures players keep their chosen night vision state.
Minecraft 1.21+
.jarplugins folderconfig.yml if desired