Ban on Death 图标

Ban on Death

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0-SNAPSHOT
本资源为搬运资源,原资源地址: https://modrinth.com/mod/ban-on-death
资源信息

Minecraft 版本: 1.19 1.19.1 1.19.2 1.19.3 1.19.4 1.20 1.20.1 1.20.2 1.20.3 1.20.4 1.20.5 1.20.6 1.21 1.21.1 1.21.2 1.21.3 1.21.4 1.21.5 1.21.6 1.21.7

平台: paper spigot

标签: game-mechanics

资源介绍

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:

  • 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 on — enable automatic bans on death
  • /deathban off — disable the system
  • /deathban info — display whether DeathBan is currently on or off
  • /deathban schedule <minutes> — 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 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.
下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
All about CREATE!

价格:0 墨喵币
下载量:0

查看详情
AstralLevelTweak

价格:0 墨喵币
下载量:0

查看详情
Solid Color Blocks

价格:0 墨喵币
下载量:0

查看详情
Podded Jungle Leaves

价格:0 墨喵币
下载量:0

查看详情