LsNightVision
A lightweight and configurable night vision toggle plugin for Minecraft servers.
LsNightVision allows players to easily 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
- Night vision can automatically persist after death or relog (configurable)
- Fully configurable action bar messages
- Supports color codes (&) and hex colors (&#ffffff)
- Permission system for player and admin actions
- 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
nightvision.use
Allows players to use /nv.
nightvision.other
Allows players to toggle night vision for other players.
nightvision.reload
Allows use of /nvreload.
All permissions default to
OP.
Configuration
Example config.yml:
Code (Text):
# ---------------------------------------------------
# LsNightVision Configuration
# ---------------------------------------------------
# Controls how the Night Vision toggle behaves on your server.
# If enabled, players who toggle night vision will keep it after
# death and when reconnecting to the server.
remember-toggle: true
# Potion Effect Settings
# Controls the visual behavior of the Night Vision effect.
# 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.
# Note: This does NOT hide the effect from the inventory status panel.
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:
# If enabled, messages will be shown in the action bar.
# To disable a specific message, set it to "" instead.
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:
# If enabled, messages will be sent in chat.
# To disable a specific message, set it to "" instead.
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 Command Message
reload-message: "&aLsNightVision configuration reloaded."