
LsNightVision
Toggleable night vision with a simple and lightweight command system
LsNightVision
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.
Features
- Toggle infinite night vision with
/nv - Toggle night vision for other players
- Optional persistent night vision after death and reconnect
- Fully configurable action bar messages
- Optional chat messages
- Prevent players from removing night vision with milk
- Supports hex colors (
&#ffffff) and standard color codes (&) - Tab completion for player names
- Lightweight and dependency-free
Commands
/nv
Toggle your own night vision.
/nv <player>
Toggle night vision for another player.
/nvreload
Reload the plugin configuration.
Permissions
| 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 |
Configuration
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."
How it works
When a player toggles night vision:
-
The plugin applies an infinite NIGHT_VISION potion effect.
-
If
remember-toggleis enabled, the plugin stores the player and reapplies night vision when they:- rejoin the server
- respawn after death
This ensures players keep their chosen night vision state.
Compatibility
- Paper
- Spigot
- Purpur
Minecraft 1.21+
Installation
- Download the plugin
.jar - Place it in your server's
pluginsfolder - Restart the server
- Configure
config.ymlif desired
Why use LsNightVision?
- Simple and lightweight
- Fully configurable
- Supports modern Minecraft color formatting
- No dependencies required
