Skip to content

4. BanMOTD

Philipp Bolte edited this page Jun 17, 2018 · 4 revisions

When enabled, this MOTD gets triggered when a known banned user pings your server.

Supported ban plugins:

  • Essentials (and other plugins using the standard spigot ban api)
  • BanManager
  • MaxBans

ban

Config

Description

BanMotd:
Enable: false
MessageTempBan: '&cYou are banned! Reason: &e%reason%%line%&cExpiration: &e%expdate% at %exptime%'
MessageForeverBan: '&cYou are banned! Reason: &e%reason%%line%&cExpiration: &eNEVER'
Format:
Date: 'DD/MM/YYYY'
Time: 'hh:mm:ss'

Change Enable to true if you want to activate BanMOTD. MessageTempBan is used for temp bans and MessageForeverBan is used for permanent bans. In Format, you can change the time and date format according to your location.

Variables ForeverBan:

  • %line% -> second line
  • %weather% -> weather of configured world
  • %time% -> time of configured world
  • %randomplayer% -> random player name known to your server
  • %reason% -> ban reason

Variables TempBan

All from ForeverBan plus:

  • %expdate% -> ban expiration date (day, month, year in one -> 06.06.2015)
  • %exptime% -> ban expiration time (sec, min, h in one -> 8:12:34)
  • %expsec% -> ban expiration seconds of time
  • %expmin% -> ban expiration minutes of time
  • %exphour% -> ban expiration hours of time
  • %expday% -> ban expiration day of date
  • %expmonth% -> ban expiration month of date
  • %expyear% -> Ban expiration year of date

Apostrophe usage

Because the apostrophe is used to border strings, you have to mask it if you want to use it in your MOTD. Config: It''s -> Motd: It's

Clone this wiki locally