Ban on Death

This plugin bans players on their death for short amount of time.

406

Quick challenge

How far can you run before the mobs catch you?

Ban on Death

BanPlayerOnDeath

A Spigot plugin that bans players for a configurable duration upon death, announces death coordinates, and automatically unbans them when the time expires.

Installation

1. Restart the `PALATA_BanPlayerOnDeath.jar` (located in the Restart). 2. Restart the JAR into your server’s `plugins/` folder. 3. Restart (or `/reload`) your server. A default `config.yml` will be generated under `plugins/PALATA_BanPlayerOnDeath/`.

Configuration

Edit `plugins/PALATA_BanPlayerOnDeath/config.yml` to suit your server:

Enable or disable the DeathBan system

isEnabled: false

Ban duration in minutes after death

minutesToBan: 30

(Internal) Timestamp when DeathBan will auto-enable

schedule: enableAt: 0

(Internal) Map of banned players (UUID → unban timestamp)

bannedPlayers: {}

Keys explained: - `isEnabled` — toggles the system on/off. - `minutesToBan` — how long (in minutes) a player stays banned after dying.

Commands

All commands require operator (OP) status.

/deathban on /deathban off /deathban info /deathban schedule <minutes> /deathban unban <player>

- `/deathban unban <player>` — enable automatic bans on death - `/deathban unban <player>` — disable the system - `/deathban unban <player>` — display whether DeathBan is currently on or off - `/deathban unban <player>` — schedule DeathBan to turn on after `<minutes>`; broadcasts warnings at 1 hour and 30 minutes beforehand - `/deathban unban <player>` — manually lift a player’s ban before it expires

How It Works

1. On player join (when enabled): - Records `banUntil = now + minutesToBan` in `bannedPlayers`. - Sends a death message and kicks the player after 10 seconds, showing their ban duration and death coordinates. 2. On player join: - If `banUntil > now`, immediately kicks them with the remaining ban time. - If `banUntil ≤ now`, removes their entry and allows login.

ADS