HardcoreBan-Revived
This simple server-side Fabric mod adds a hardcore-style death-ban mechanic to your server, built on the powerful BanHammer API.
Want to raise the stakes on your SMP server? With HardcoreBan-Revived, death is no longer just a minor inconvenience. When a player dies, they automatically receive a server ban for a configurable duration, making every action and encounter more meaningful and intense.
Key Features
Automatic Death Ban: Any player who dies on the server automatically receives a temporary ban.
Dynamic Ban Reasons: The ban reason is not a generic phrase! It reflects the specific way the player died, providing personalized messages for different types of death - falling, drowning, lava, or being killed by another player.
Full Customization: Don't like the default settings? You can change them! The mod automatically creates a configuration file (config/HardcoreBanRevived/config.json), allowing you to:
- Enable or disable the death-ban system completely (
enableHardcoreBans) - Set the exact ban duration in seconds (
banDurationSeconds)
Custom Ban Screen: The mod provides an informative ban screen that precisely tells the player the reason for punishment and the waiting time until they can return to the server.
Server-Only: This mod only needs to be installed on the server. Players don't need to install anything to connect!
How It Works
The mod connects to 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 basis for the ban. For example, a player who dies in lava will see "tried to swim in lava" as the reason on the ban screen.
Configuration
On first launch, the mod will create a config.json file in the server's config/HardcoreBanRevived/ directory with the following parameters:
{
"banDurationSeconds": 604800,
"banMessage": "You got banned for dying",
"enableHardcoreBans": true
}
Simply edit these values and restart the server to apply the changes.
Dependencies
For the mod to work, the following must be installed on the server:
- Fabric API
- Fabric Language Kotlin
- BanHammer