▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/LsNightVision
LsNightVision

LsNightVision

Toggleable night vision with a simple and lightweight command system

20
0

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

PermissionDescriptionDefault
nightvision.useAllows players to toggle their own night visionOP
nightvision.otherAllows toggling night vision for other playersOP
nightvision.reloadAllows reloading the plugin configOP

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: "&#55ff55Night 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: "&#55ff55Night 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

Совместимость

Minecraft: Java Edition

1.21.x

Платформы

Поддерживаемые окружения

Сервер

Создатели

Детали

Лицензия:MIT
Опубликован:1 месяц назад
Обновлён:1 месяц назад
Главная