discord.yml
Allows sending messages to Discord server channels when a punishment occurs. Bukkit requires DiscordSRV and Sponge requires MagiBridge.
Platform | Location |
---|---|
CraftBukkit/Spigot/Paper | /plugins/BanManager/discord.yml |
BungeeCord | Unsupported |
Sponge | /config/banmanager/discord.yml |
Velocity | Unsupported |
enabled
- Set to true to enable discord integration, defaults tofalse
messagesFromActor
- Set to true to show punishment messages as if they were sent by the minecraft user, defaults totrue
punishments
ban
The Discord channel name (forchannel
DiscordSRV
) or ID (forMagiBridge
) of the Discord channel. ForDiscordSRV
, this name must specified underChannels
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 lineignoreSilent
- Set to false to send silent punishments, defaults to true
Example
enabled: true
messagesFromActor: 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