All Mods Resource Packs Data Packs Shaders Modpacks Plugins
BanHammer

BanHammer

by Patbox • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

BanHammer

Simple, customisable punishment utility mod for Fabric. Allows moderators to permanently/temporary ban, mute or kick players. Supports Fabric Permissions API used by LuckPerms and PlayerRoles.

Every user facing message is configurable with support of advanced formatting

It has build in support for SQLite and MySQL databases.

Commands and permissions

Command Permission Description
/banhammer banhammer.commands.main (default) Sends information about banhammer
/banhammer reload banhammer.commands.reload (op 4) Reloads mods config
/banhammer import \ [\] banhammer.commands.import (op 4) Imports bans from other sources (and removes them from it, if remove is set to true)
/ban \ [\] banhammer.punish.ban (op 3/config) Bans player
/tempban \ \ [\] banhammer.punish.tempban (op 3/config) Bans player for provided time
/ban-ip \ [\] banhammer.punish.banip (op 3/config) Bans player (by ip)
/tempban-ip \ \ [\] banhammer.punish.tempbanip (op 3/config) Bans player (by ip) for provided time
/mute \ [\] banhammer.punish.mute (op 3/config) Mutes player
/tempmute \ \ [\] banhammer.punish.tempmute (op 1) Mutes player for provided time
/kick \ [\] banhammer.punish.kick (op 3/config) Kicks player from server
/unban \ banhammer.unpunish.unban (op 3/config) Removes player's (temp)bans
/unban-ip \ banhammer.unpunish.unbanip (op 3/config) Removes player's (temp)ip bans
/unmutes \ banhammer.unpunish.unmute (op 3/config) Removes player's (temp)mute
/pardon \ banhammer.unpunish.pardon (op 3/config) Removes all of player's punishments

Additionally you can add -s Before reason, if you want to make that punishment silent.

Duration can be expressed in seconds (15/15s), minutes (3m), hours (24h), days (7d), years (1y) or any combination of these (5y3d9h3m8s).

Configuration

{
  "CONFIG_VERSION_DONT_TOUCH_THIS": 1,
  "punishmentsAreSilent": false,             // Makes all punishments silent
  "storeAllPunishmentsInHistory": true,      // Stores all punishments in additional database table
  "muteBlockedCommands": [                   // List of commands blocked to muted players
    "msg",
    "me"
  ],
  "standardBanPlayersWithBannedIps": false,  // Gives users standard bans, when they are ip banned
  "autoBansFromIpBansAreSilent": true,       // Makes autobans from ip ban silent
  "defaultTempPunishmentDurationLimit": "-1",// Sets limit for duration of temporary punishments. -1 = no limit
  "permissionTempLimit": {                   // Allows to change duration limit of punishment with `banhammer.duration.<entry>` permission
    "example": "31d"
  },
  "databaseType": "sqlite",                  // Changes database type ("sqlite" or "mysql")
  "sqliteDatabaseLocation": "banhammer-sqlite.db",  // sqlite databases location (from server's directory)
  "mysqlDatabaseAddress": "",                // Address of mysql database
  "mysqlDatabaseName": "",                   // Name of mysql database
  "mysqlDatabaseUsername": "",               // Username of mysql user
  "mysqlDatabasePassword": ""                // Password of mysql user
}

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
26.3.x
Fabric
1mo ago 1
26.2
Fabric
4mo ago 1
26.1.x
Fabric
7mo ago 1
1.21.11
Fabric Quilt
9mo ago 1
1.21.11
Fabric Quilt
10mo ago 1
1.21.x
Fabric Quilt
11mo ago 1
1.21.10
Fabric Quilt
last yr. 1
1.21.x
Fabric Quilt
last yr. 1
1.21.x
Fabric Quilt
last yr. 1
1.21.x
Fabric Quilt
last yr. 1
1.21.x
Fabric Quilt
last yr. 1
1.21.x
Fabric Quilt
last yr. 1
1.21.x
Fabric Quilt
last yr. 1
1.21.x
Fabric Quilt
last yr. 1
1.20.x
Fabric Quilt
last yr. 1
1.20.1
Fabric Quilt
last yr. 1
1.20.4
Fabric Quilt
last yr. 1
1.20.x
Fabric Quilt
last yr. 1
1.20.x
Fabric Quilt
last yr. 1
1.20.x
Fabric Quilt
last yr. 1
1.19.2
Fabric Quilt
last yr. 1
1.19.x
Fabric Quilt
last yr. 1
1.19.3
Fabric Quilt
last yr. 1
1.19.2
Fabric Quilt
last yr. 1
1.19.3
Fabric Quilt
last yr. 1
1.19.2
Fabric Quilt
last yr. 1
1.19.3
Fabric Quilt
last yr. 1
1.19.2
Fabric Quilt
last yr. 1
1.19.2
Fabric Quilt
last yr. 1
1.19.3-rc2
Fabric Quilt
last yr. 1
1.19.2
Fabric Quilt
last yr. 1
1.19.x
Fabric Quilt
last yr. 1
1.19.x
Fabric Quilt
last yr. 1
1.18.2
Fabric Quilt
last yr. 1
1.18.2
Fabric Quilt
last yr. 1
1.18.x
Fabric
last yr. 1
1.17.1
Fabric
last yr. 1
1.17.1
Fabric
last yr. 1
1.17.1
Fabric
last yr. 1
1.17
Fabric
last yr. 1
1.16.5
Fabric
last yr. 1
1.16.5
Fabric
last yr. 1
1.16.5
Fabric
last yr. 1
1.16.5
Fabric
last yr. 1
## What's Changed


[0.11.1+1.21] 0.11.1+1.21 by Patbox on Jun 18, 2024
Download
## What's Changed


[0.4.2] 0.4.2 by Patbox on Nov 13, 2021
Download
  • Added support for table prefixes in databases
  • Fixed tempmute message using standard mute message template
  • You can now change arguments of mysql database connection
  • You can now specify reason while removing punishements
[0.4.1] 0.4.1 by Patbox on Oct 01, 2021
Download
  • Fixed MySQL driver being broken
  • Improved player info lookup code,
  • You can use player name, uuid and ip interchangeably in all commands,
  • Fixed Discord Webhook settings,
  • And few other small fixes.
[0.4.0] 0.4.0 by Patbox on Jul 07, 2021
Download
  • Ban Hammer 0.3.0**
  • Updated to 1.17.1,
  • Added support for discord webhooks
[0.3.0] 0.3.0 by Patbox on Jun 07, 2021
Download

  • Updated to 1.17,
  • Switched to Placeholder API's Text Parser formatting. You will need to remove your old messages config file!
  • All temporary punishments have now own messages instead of sharing with normal ones.
[0.2.2] 0.2.2 by Patbox on Apr 14, 2021
Download
Fix compatibility with carpet
[0.2.1] 0.2.1 by Patbox on Apr 06, 2021
Download
Bump default op level for some of permissions, allow to change default required op level for giving and removing punishments
[0.2.0] 0.2.0 by Patbox on Mar 31, 2021
Download
  • Changed permission, so it's easier to use * with them
  • Removing punishments by username or ip should work better
  • Fixed punishments given from console not working
  • Added option to automatically give standard bans to ip banned users (disabled by default)
BanHammer Icon
Download BanHammer
Select game version
Select platform