Описание
# Blacks NightVision
Blacks NightVision is a lightweight and simple Minecraft plugin designed to provide players with an easy way to toggle Night Vision using commands. Admins have additional controls to manage and disable this feature for all players.
## if you find any incompatibility with another plugin please let me know by joining my [Discord](https://blackdev.xyz).
## Features
- **Toggle Night Vision for yourself** using `/nv`
- **Admins can disable/enable the night vision feature for all players** using `/nvfulltoggle`
## Commands
| Command | Permission | Description |
|-----------------|-----------------------|------------------------------------------------------------|
| `/nv` | `none` | Toggles Night Vision for the player who uses the command. |
| `/nvfulltoggle` | `nv.fulltoggle` | Toggles the ability of players to use `/nv` globally. |
## TODO:
1. toggle command: done
2. fulltoggle command: done
3. disable command for every player: working
## Permissions
- `nv.fulltoggle` — Allows the player to use the admin command `/nvfulltoggle`.
## Installation
1. Download the plugin's latest release from [Modrinth](https://modrinth.com/plugin/blacks-nightvision-plugin/version/1.21).
2. Place the downloaded `.jar` file into your server's `plugins` folder.
3. Restart the server.
## Configuration
The plugin has no additional configuration files, keeping it simple and lightweight. However, ensure players are assigned the correct permissions to use the commands.
## Usage
1. **Players**: To toggle Night Vision, simply use the command `/nv`.
2. **Admins**: To globally toggle the ability for all players to use `/nv`, use the command `/nvfulltoggle`.
## Examples
1. **Enabling Night Vision**:
```
/nv
```
This command enables or disables Night Vision for the player who uses it.
2. **Disabling Night Vision Toggle for All** (Admin Command):
```
/nvfulltoggle
```
This command prevents all players from using the `/nv` command, globally disabling the Night Vision feature. Executing it again will re-enable the feature.
## Permissions Setup (Recommended)
```yaml
permissions:
nv.fulltoggle:
description: Allows admins to globally toggle the use of /nv.
default: op
```
## Support & Issues
If you find any issues or bugs, or if you have suggestions, feel free to open an issue on the [Discord](https://blackdev.xyz).