A simple plugin that gives an admin a ban hammer for banning players.
For version below 1.1.1: plugin LuckPerm is required for the public broadcast feature to use player's prefix!
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.)
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
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.
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
/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)
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: ""