DiscordSRV Setup Guide - Coralise/CustomBansPlus GitHub Wiki
DiscordSRV Setup Guide
There are two types you may use, and these are the Simple Messages and the Alert Messages. You may find how to setup either down below.
Simple Messages
Channel Name: CustomBansPlus
Insert "CustomBansPlus": "<Disc Channel ID>"
into the Channels:
key in DiscordSRV's config.yml.
Output:
Alert Messages
An example of an alert would be:
First, add Ban, IPBan, Mute, Kick, Warn, Unban, Unmute, and Report
channels to DiscordSRV's config.yml Channels:
key just like in the Simple Messages section.
Note that the Report Alert is meant to be seen by staff members only, so don't forget to assign a separate channel to it. You can still add it to the same channel as the others if you want to make it public.
Next, open up DiscordSRV's alerts.yml and insert the following under the Alerts:
key and on the same margin (without indents):
Template 1
Template 2
Template 3
Template 4 (Thank you Firav#3739 for this template!)
You may freely edit all children of the Embed:
key. Editing anything else is discouraged, unless you know what you're doing.
The following are the available placeholders:
\n - New line
${#event.getPlayerName()} - Player Name
${#event.getPlayerUuid()} - Player UUID
${#event.getStaffName()} - Staff Name
${#event.getReason()} - Punishment Reason
${#event.getDuration()} - Punishment Duration
Reports
${#event.getReport()} - Report
${#event.getDate()} - Report Date
${#event.getLocation()} - Report Location
${#event.getPlayerName()} - Reported Player
${#event.getPlayerUuid()} - Reported Player's UUID
${#event.getReporter()} - Reporter
Please note that not all placeholders are available to every punishment, such as the KickEvent and GetDuration, since there is no duration in the kicking of a player.
For more information relating to the alerts.yml, visit DiscordSRV's alerts.yml webpage here.