HomeJavaModsBan on Death
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. Download or build the PALATA_BanPlayerOnDeath.jar (located in the PALATA repository).
  2. Place 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:

Commands

All commands require operator (OP) status.

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

How It Works

  1. On player death (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.
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more