LsNightVision
Toggleable night vision with a simple and lightweight command system
LsNightVision
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 hex colors (`&#ffffff`) and standard color codes (`&`) after death and reconnect * Fully configurable hex colors (`&#ffffff`) and standard color codes (`&`) * Optional hex colors (`&#ffffff`) and standard color codes (`&`) * 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:
```yaml
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-toggle` is 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
1. Download the plugin `.jar` 2. Place it in your server's `plugins` folder 3. Restart the server 4. Configure `config.yml` if desired
---
Why use LsNightVision?
* Simple and lightweight * Fully configurable * Supports modern Minecraft color formatting * No dependencies required