1. Docs
  2. /
  3. BanManager
  4. /
  5. Configuration
  6. /
  7. discord.yml

discord.yml

Allows sending messages to Discord server channels when a punishment occurs. Bukkit requires DiscordSRV and Sponge requires MagiBridge.

PlatformLocation
CraftBukkit/Spigot/Paper/plugins/BanManager/discord.yml
BungeeCordUnsupported
Sponge/config/banmanager/discord.yml
  • enabled - Set to true to enable discord integration, defaults to false
  • punishments
    • ban
      • channel
        The Discord channel name (for DiscordSRV) or ID (for MagiBridge) of the Discord channel. For DiscordSRV, this name must specified under Channels in your DiscordSRV config.yml, i.e.
      # The first part of channel pairs is not the Discord channel name!
      Channels: {"global": "219559668236681217", "punishments": "221419146028646402"}
      
      • message - Supports Discord Markdown, use \n to represent a new line
      • ignoreSilent - Set to false to send silent punishments, defaults to true

Example

enabled: true
punishments:
  ban:
    channel: 'punishments'
    message: "[player] has been permanently banned\nBy: [actor]\nReason:[reason]"
    ignoreSilent: true
  tempban:
    channel: 'punishments'
    message: "[player] has been temporarily banned for [expires]\nBy: [actor]\nReason:[reason]"
    ignoreSilent: true
  unban:
    channel: 'punishments'
    message: "[player] has been unbanned\nBy: [actor]\nReason:[reason]"
  banip:
    channel: 'punishments'
    message: "[ip] has been permanently banned\nBy: [actor]\nReason:[reason]"
    ignoreSilent: true
  tempbanip:
    channel: 'punishments'
    message: "[ip] has been temporarily banned for [expires]\nBy: [actor]\nReason:[reason]"
    ignoreSilent: true
  unbanip:
    channel: 'punishments'
    message: "[ip] has been unbanned\nBy: [actor]\nReason:[reason]"
  kick:
    channel: 'punishments'
    message: "[player] has been kicked\nBy: [actor]\nReason:[reason]"
    ignoreSilent: true
  mute:
    channel: 'punishments'
    message: "[player] has been permanently muted\nBy: [actor]\nReason:[reason]"
    ignoreSilent: true
  tempmute:
    channel: 'punishments'
    message: "[player] has been temporarily muted for [expires]\nBy: [actor]\nReason:[reason]"
    ignoreSilent: true
  unmute:
    channel: 'punishments'
    message: "[player] has been unmuted\nBy: [actor]\nReason:[reason]"
  warning:
    channel: 'punishments'
    message: "[player] has been warned\nBy: [actor]\nReason:[reason]"
    ignoreSilent: true

About

  • by James Mortemore © 2012 - 2021