Using it

Warning escalation

Warnings can escalate on their own. After each new warning, mcBans counts the player's active warnings. If the count exactly matches a number under warns.thresholds, that punishment is issued by "System".

warns:
  expire-after: "30d"
  thresholds:
    3:
      type: MUTE
      duration: "1h"
      reason: "Reached <count> warnings"
    5:
      type: BAN
      duration: "1d"
      reason: "Reached <count> warnings"
      purgatory: true
  • type is BAN, MUTE, KICK or FREEZE. duration uses the same lengths as commands.
  • purgatory: true sends a ban to purgatory. ip: true also punishes the IP.
  • <count> in the reason is replaced by the number of active warnings.
  • A warning stops counting after warns.expire-after (use permanent to never expire), or when it is removed with /unwarn.
  • Only the exact count triggers a rule. The 4th warning does nothing with the defaults, and each rule fires once per climb.
Defaults

With the default config, 3 warnings give a 1 hour mute, 5 give a 1 day purgatory ban and 7 give a 7 day purgatory ban.