HomeJavaModsSimpleBanHammer
SimpleBanHammer
ModsJava

SimpleBanHammer

by _Monkeee · on Modrinth

Which build do you need?

This mod ships a separate file for every mod loader and every version of the game. Pick both, then download — the wrong build installs fine and then does nothing in the game.

Mod loader

Minecraft version

⬇ Download for 1.21.10–1.21.11 · Bukkit⬇ Download for 1.20.5–1.21.9 · Bukkit⬇ Download for 1.21.10–1.21.11 · Paper⬇ Download for 1.20.6–1.21.9 · Paper⬇ Download for 1.21.10–1.21.11 · Spigot⬇ Download for 1.20.6–1.21.9 · Spigot
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.

SimpleBanHammer

Discalimers

Disclaimer 1:

For version below 1.1.1: plugin LuckPerm is required for the public broadcast feature to use player's prefix!

Disclaimer 2:

version 1.1.5 has not been tested by me, so i implore you, that if you find any bug/issue, please make a github issue or DM me on discord (.monkeee.)

Summery

This Plugins is for admins that are board of banning players the normal way.

v1.1.4 has the ability to send logs to discord webhooks

Functionality

When a player is hit with the ban hammer, he will forever be banned from the server with the reason set by the user. The ban can be broadcasted to all the players with a customized message via config.

Server Operators will not be affected by the ban hammer.

CUSTOM REASON IS ONLY AVAILABLE IN THE VERSION 1.0.2 AND UP!

Permissions

sbh.give - Required for using the command to give yourself the ban hammer DEFAULT: OP

sbh.usehammer - Required to use the ban hammer to ban someone. DEFAULT: OP

sbh.reload - Required for reloading the config. DEFAULT: OP

sbh.exampt - Protects a player from being banned by the hammer. DEFAULT: False

Commands

/givehammer <reason> - Give yourself the ban hammer with a custom reason. (Permission Required: sbh.give) (1.1.4 and lower)

/givebanhammer reason:"<reason>" command:"ban %player% %reason%" - Give yourself the ban hammer with a custom reason and command. If left empty, will use the default values form the config. (1.1.5+)

/sbh_config - Edit and manage the config (Permission Required: sbh.config)

Issues and Updates

UPDATES:

This project is my side project so do not expect full updates or anything similar.

ISSUES:

If you find any issues, report them here and i will resolve them whenever i can!

Current Config (v1.1.5)

# DO NOT TOUCH UNDER ANY CIRCUMSTANCES!
# current-version: "1.0.4"

# Type: Bool. Weather the ban is broadcasted to all the players.
enable-broadcast: false

# Type: str. Message that is broadcasted to all the players.
# ONLY IF 'enable-broadcast' IS ENABLED
# Vars:
broadcast-message: '&cPlayer %prefix_player% &chas been banned by %prefix_admin% with the reason: &e%reason%'

# Type: str, The ban command used to ban players. (ex. tempban, ban, eban, mute, ...)
# REQUIRED: The moderator has to have permission to use said command!
ban-command: 'ban %player% %reason%'

# Type: str, The ban message if non arguments given.
default-reason: "The Ban Hammer Has Spoken!"

# Type: Bool, If op players should receive Update Notifications when joining.
update-notifier: true

# Type: Str, The item for the ban hammer. NOTE: HAS TO BE A VALID ITEM FORMAT (ex.: mace, iron_axe, diamond_axe,...)
item-banhammer: "IRON_AXE"

# Type: Str, If the executed command is run by the player or the console.
enable-console-sender: true

# Type: Str, Discord webhook url for logging bans to discord.
# LEAVE EMPTY IF NOT USED
discord-webhook: ""
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