Описание
A lightweight Paper plugin that grants specific players **immortality**, preventing them from dying.
## Features
- **Death Prevention**: Immortal players cannot die from any damage source
- **Totem Interaction**: Configurable totem of undying behavior for immortal players
- **Interactive Commands**: Click player names in chat to quickly add/remove immortality
- **Two Immortality Methods**: Grant immortality via command or permission node
- **Easy Management**: Simple commands to add, remove, check, and list immortal players
## Configuration
### config.yml
```yaml
# Whether immortal players should be able to pop totems of undying
# If true, totems will work normally. If false, damage is prevented instead
popTotems: true
# Minimum health immortal players can drop to
# (2 hp = 1 heart)
minimumHealth: 1.0
```
**popTotems**: When `true`, immortal players holding a Totem of Undying will consume the totem instead of being saved by immortality. When `false`, immortality prevents all fatal damage regardless of totems.
**minimumHealth**: Minimum health immortal players can drop to (2 health points = 1 heart). Damage will be capped so the player's health never falls below this value.
## Commands
All commands use `/immortality` and `/im` aliases.
| Command | Description | Permission |
|---------|-------------|------------|
| `/immortality add ` | Grant immortality to an online player | `immortality.command.add` |
| `/immortality remove ` | Remove immortality from a player | `immortality.command.remove` |
| `/immortality check ` | Check if a player has immortality | `immortality.command.check` |
| `/immortality list` | Display all immortal players | `immortality.command.list` |
| `/immortality reload` | Reload plugin configuration | `immortality.command.reload` |
## Permissions
| Permission | Description | Default |
|------------|-------------|---------|
| `immortality.command.add` | Allows granting immortality to players | `op` |
| `immortality.command.remove` | Allows removing immortality from players | `op` |
| `immortality.command.check` | Allows checking a player's immortality status | `op` |
| `immortality.command.list` | Allows listing all immortal players | `op` |
| `immortality.command.reload` | Allows reloading the plugin configuration | `op` |
| `immortality.immortal` | Grants immortality to anyone with this permission | `false` |