跳到正文

HardcoreBan-Revived

作者:RedddFoxxyy

A hardcore ban mod for fabric servers, based on banhammer.

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

HardcoreBan-Revived

A simple, server-side Fabric mod that adds a hardcore-style death-ban mechanic to your server, built on the powerful BanHammer API.

Ever wanted to raise the stakes on your SMP? With HardcoreBan-Revived, death is no longer a minor inconvenience. When a player dies, they are automatically banned from the server for a configurable duration, making every action and encounter more meaningful.

Features

  • Automatic Death Bans: Players who die on your server will be automatically banned.
  • Dynamic Ban Reasons: The ban reason isn’t generic\! It reflects how the player died, providing custom messages for various death types like falling, drowning, lava, and being killed by another player.
  • Fully Configurable: Don’t like the defaults? You can change them\! A configuration file (config/HardcoreBanRevived/config.json) is automatically generated, allowing you to:
  • Enable or disable the death-ban system entirely (enableHardcoreBans).
  • Set the exact ban duration in seconds (banDurationSeconds).
  • Custom Ban Screen: The mod provides a custom, informative ban screen that tells the player exactly why they were banned and how long they have to wait before rejoining.
  • Server-Side: This mod only needs to be installed on the server. Your players don’t need to install anything to join\!

How It Works

This mod hooks into the server’s entity death event. When a player dies, it creates a punishment through the BanHammer API, using the cause of death as the ban reason. For example, a player who perishes in lava will see “tried to swim in lava” as their cause of death on the ban screen.

Configuration

Upon first launch, the mod will create a config.json file in your server’s config/HardcoreBanRevived/ directory with the following options:

{
    "banDurationSeconds": 604800,
    "banMessage": "You got banned for dying",
    "enableHardcoreBans": true
}

Simply edit these values and restart your server to apply the changes.

Dependencies

This mod requires the following to be installed on your server:

常见问题

HardcoreBan-Revived 支持哪些 Minecraft 版本?

HardcoreBan-Revived 支持 Minecraft Java 版 1.21.7,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

HardcoreBan-Revived 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分