HardcoreBan-Revived
一款简单的服务端 Fabric 模组,基于强大的 BanHammer API,为你的服务器添加了硬核风格的死亡封禁机制。
是否想在你的生存多人游戏(SMP)中提高挑战难度?有了 HardcoreBan-Revived,死亡不再只是一个小麻烦。当玩家死亡时,他们会被自动从服务器封禁一段可配置的时间,使得每一个行动和遭遇都变得更加有意义。
功能
- 自动死亡封禁:在你的服务器上死亡的玩家将被自动封禁。
- 动态封禁理由:封禁理由并非千篇一律!它反映了玩家的死因,并为各种死亡类型提供自定义消息,如坠落、溺水、岩浆以及被其他玩家击杀等。
- 完全可配置:不喜欢默认设置?你可以更改它们!会自动生成一个配置文件(
config/HardcoreBanRevived/config.json),允许你:
- 启用或禁用整个死亡封禁系统(
enableHardcoreBans)。
- 设置确切的封禁持续时间(秒)(
banDurationSeconds)。
- 自定义封禁界面:模组提供了一个信息丰富的自定义封禁界面,明确告知玩家他们被封禁的原因以及需要等待多久才能重新加入。
- 仅服务端:此模组只需安装在服务器上即可。你的玩家无需安装任何东西即可加入!
工作原理
该模组挂钩到服务器的实体死亡事件。当玩家死亡时,它通过 BanHammer API 创建惩罚,并将死因作为封禁理由。例如,在岩浆中丧生的玩家会在封禁界面上看到“试图在岩浆中游泳”作为其死因。
配置
首次启动时,模组将在服务器的 config/HardcoreBanRevived/ 目录中创建一个 config.json 文件,包含以下选项:
{
"banDurationSeconds": 604800,
"banMessage": "You got banned for dying",
"enableHardcoreBans": true
}
只需编辑这些值并重启服务器以应用更改。
依赖项
此模组要求服务器上安装以下内容:
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:
评论 0
登录后参与评分
还没有评论,来抢沙发吧