Skip to main content

messages.yml

DiscordToMinecraft...

PlaceholdersExampleDescription
%allroles%Owner | Developer | Boss manAll the user's roles separated by DiscordToMinecraftAllRolesSeparator
%message%Hello!The message content
%toprole%OwnerThe user's highest ranking role
%toprolealias%OwnerThe alias for the role from DiscordChatChannelRoleAliases, otherwise the role's name
%toproleinitial%OThe first initial of the user's highest ranking role
%toprolecolor%<dark_red>The approximate color of the highest ranking role
%username%scarszThe user's username/nickname if set
%channelname%globalThe name of the Discord channel the message is coming from
note

PlaceholderAPI placeholders are also supported

...ChatMessageFormat

The format used when sending messages from Discord to Minecraft.

...ChatMessageFormatNoRole

The format used when sending messages from Discord to Minecraft for the user with no roles.

...ChatMessageFormat_<channel>

The format used when sending messages from Discord to Minecraft for <channel>.

You can specify a different format per channel. To add a format for a channel named mychannel you'd add the following options to your messages.yml:

DiscordToMinecraftChatMessageFormat_mychannel: "[&bDiscord From MyChannel &r| %toprolecolor%%toprole%&r] %name% » %message%"
DiscordToMinecraftChatMessageFormatNoRole_mychannel: "[&bDiscord From MyChannel&r] %name% » %message%"

...ChatMessageFormatNoRole_<channel>

The format used when sending messages from Discord to Minecraft for the user with no roles for <channel>.

This can be formatted using the same idea as the previous option:

DiscordToMinecraftChatMessageFormatNoRole_mychannel: "[&bDiscord From MyChannel&r] %name% » %message%"

...AllRolesSeparator

The separator used in between roles in %allroles%

...ReplyFormat

The format for the message displayed to indicate that the message is a reply NOTE: The %reply% placeholder needs to be present in the format if you want the DiscordToMinecraftMessageReplyFormat to display in your message.

MinecraftChatToDiscordMessage...

PlaceholdersExampleDescription
%username%jeb_raw player username
%displayname%BigBossManJebdisplay name from things like nicknames
%usernamenoescapes%jeb_raw player username without escaping discord format (for use in inline code & code block markdown)
%displaynamenoescapes%BigBossManJebdisplay name from things like nicknames without escaping discord format (for use in inline code & code block markdown)
%message%Hello!message content
%primarygroup%Ownerthe name of the user's primary group
%world%worldname of world player is in
%worldalias%Mainlandalias of world player is in via Multiverse-Core
%date%Sun Jan 1 15:30:45 PDT 2017current date & time
%channelname%globalthe name of the channel that the message was sent in, if the message was sent in a channel at all
note

PlaceholderAPI placeholders are also supported

...Format

the format used when sending messages from Minecraft to Discord.

...FormatNoPrimaryGroup

used in place of MinecraftChatToDiscordMessageFormat when no primary group for the player was found.

ChatChannelHookMessageFormat

This is a special message that's only used when a supported chat channel plugin is hooked. It modifies what the message would be like in-game to include information related to the channel the message is from.

PlaceholdersExplanations
%channelcolor%the color character corresponding to the channel
%channelname%the literal name of the channel, usually the name only the server sees internally
%channelnickname%the formal nickname of the channel, usually the name of the channel that players see
%message%the message after processing through DiscordToMinecraftChatMessageFormat/DiscordToMinecraftChatMessageFormatNoRole

Dynmap...

PlaceholdersExampleDescription
Same as Discord -> Minecraft placeholders
note

PlaceholderAPI placeholders are also supported

...NameFormat

The format for the username part of the message sent to Dynmap (this may be hidden depending on dynmap settings).

...ChatFormat

The format for the message part of the message sent to Dynmap.

...DiscordFormat

PlaceholdersExampleDescription
%name%Notchthe username for the message sent on the Dynmap web chat (could be blank)
%message%Hello!message content
note

PlaceholderAPI placeholders are also supported

The format for Dynmap messages going to Discord

DiscordConsoleChannel...

...Format

PlaceholdersExampleDescription
{level}INFO, WARN, ERRORmessage severity level
{name}Serverlogger name
{datetime}Sun Jan 1 15:30:45 PDT 2017current date & time
note

PlaceholderAPI placeholders are also supported

This is the format used when sending a line from the console to the console channel, if enabled

...TimestampFormat

The date format that will be used for the {date} and {datetime} placeholders

...Prefix

The literal prefix to prepend to a batch of lines

...Suffix

The literal suffix to append to a batch of lines

...Padding

The amount of padding to add inside the prefix

DiscordChatChannelConsoleCommandNotifyErrorsFormat

PlaceholdersExampleDescription
%user%scarszthe name of the user that tried running the command
%error%no permissionthe reason for the error

Used when an error occurs with permissions for the player to run the command, not an error running the command itself. This is sent as a PM to the user.

DiscordChatChannelListCommand...

...FormatOnlinePlayers

the message at the beginning of the list, before all of the player names.

...FormatNoOnlinePlayers

used instead for when no players are online

...PlayerFormat

PlaceholdersExampleDescription
%username%jeb_raw player username
%displayname%BigBossManJebdisplay name from things like nicknames
%primarygroup%Ownerthe name of the user's primary group
%world%worldname of world player is in
%worldalias%Mainlandalias of world player is in via Multiverse-Core
note

PlaceholderAPI placeholders are also supported

the format of how each player should appear in the list

...AllPlayersSeparator

the separator used in between players

MinecraftPlayer...

Embed InformationDescription
Coloraccepts a hex color code (eg. "#ffffff") or a rgb integer (eg. 0)
Fieldsformat is "title;value;inline" (eg. "Who joined?;%displayname%;true") or "blank" to add a blank field
Timestampset to true to use the time the message was sent or use a epoch timestamp for a specific time (https://www.epochconverter.com/)
PlaceholdersExampleDescription
%displayname%BigBossManJebdisplay name from things like nicknames
%username%jeb_raw player username
%displaynamenoescapes%BigBossManJebdisplay name from things like nicknames without escaping discord format (for use in inline code & code block markdown)
%usernamenoescapes%jeb_raw player username without escaping discord format (for use in inline code & code block markdown)
%date%Sun Jan 1 15:30:45 PDT 2017current date & time
%embedavatarurl%<AvatarUrl>the user's avatar
%botavatarurl%<Bot Avatar Url>the bot's avatar
%botname%DiscordSRV botthe bot's name
note

PlaceholderAPI placeholders are also supported

...JoinMessageFormat

PlaceholdersDescription
%message%join message as seen in-game
note

PlaceholderAPI placeholders are also supported

The message that gets broadcasted when a player joins the server.

...FirstJoinMessageFormat

PlaceholdersDescription
%message%first join message as seen in-game
note

PlaceholderAPI placeholders are also supported

The message that gets broadcasted when a player joins for the first time.

...LeaveMessageFormat

The message that gets broadcasted when a player leaves.

...DeathMessageFormat

PlaceholdersDescription
%deathmessage%Raw death message
note

PlaceholderAPI placeholders are also supported

The message that gets broadcasted on player death.

...AchievementMessagesFormat

PlaceholdersDescription
%achievement%Title of the achievement/advancement
note

PlaceholderAPI placeholders are also supported

The message that gets broadcasted when a player gets an achievement.

ChannelTopicUpdater...

PlaceholdersDescription
%playercount%current player count
%playermax%maximum player count
%date%current date
%timestamp%current time in seconds since UNIX epoch
%starttimestamp%start time in seconds since UNIX epoch
%totalplayers%total amount of players to ever join the main world
%uptimemins%amount of minutes since DiscordSRV has started
%uptimehours%amount of hours since DiscordSRV has started
%motd%motto of the day of the server
%serverversion%server version such as Spigot-1.9
%freememory%free memory of the JVM in MB
%usedmemory%used memory of the JVM in MB
%totalmemory%total memory of the JVM in MB
%maxmemory%max memory of the JVM in MB
%freememorygb%free memory of the JVM in GB
%usedmemorygb%used memory of the JVM in GB
%totalmemorygb%total memory of the JVM in GB
%maxmemorygb%max memory of the JVM in GB
%tps%average TPS of the server
note

PlaceholderAPI placeholders are also supported

...ChatChannelTopicFormat

message to set the chat channel's topic to every X seconds

...ConsoleChannelTopicFormat

message to set the console channel's topic to every X seconds

...ChatChannelTopicAtServerShutdownFormat

message to set the chat channel's topic when the server shuts down

...ConsoleChannelTopicAtServerShutdownFormat

message to set the console channel's topic when the server shuts down

DiscordCommandFormat

This is the message sent to players when they run "/discord". It's recommended to leave command syntax as a part of this.

NoPermissionMessage

No permission message

UnknownCommandMessage

Unknown command message

DiscordChatChannelServer...

...StartupMessage

message to be sent when server starts; leave blank to disable

...ShutdownMessage

message to be sent when server shuts down; leave blank to disable

ServerWatchdogMessage

PlaceholdersDescription
%guildowner%The guild owner's mention tag.
%date%The date & time when the message gets sent.
%timeout%ServerWatchdogTimeout as a placeholder
%timestamp%For use in discord's timestamp format EG: `<t:%timestamp%:R>

The watchdog constantly monitors the last time your server performed a game tick. If the time since the last tick goes above the set interval in seconds, Discord messages can be triggered.

CodeGenerated

PlaceholdersDescription
%code%the code generated for the player to link their account with
%botname%the name of the bot on Discord

The message that appears in minecraft when a player runs the /discordsrv link command.

UnknownCode

The message that appears in the bot's discord DMs if a user sends a 4 character message that isn't a generated code.

InvalidCode

The message that appears in the bot's discord DMs if a user sends any message that isn't a generated code.

DiscordAccountLinked

PlaceholdersDescription
%name%the name of the Minecraft player that the user's Discord account was linked to
%uuid%the uuid of the Minecraft player that the user's Discord account was linked to

The bot's DM response when a user gets their discord account linked.

DiscordAccountAlreadyLinked

PlaceholdersDescription
%name%the Minecraft uuid of the user's linked Minecraft account
%uuid%the Minecraft username of the user's linked Minecraft account

The bot's DM response if a user tries to link their minecraft account but they're already linked.

DiscordLinkedAccountRequired

PlaceholdersDescription
%message%the message the user was not able to send because they were not linked

The bot's reply if a player that isn't linked tries to send a discord message through the registered text channel.

DiscordLinkedAccountCheckFailed

The bot's reply if it can't check if a player is linked.

ClickToCopyCode

The hover text for CodeGenerated's %code% placeholder.

MinecraftAccountLinked

PlaceholdersDescription
%id%the discord id of the Discord user that the user's Minecraft account was linked to
%username%the discord name of the Discord user that the user's Minecraft account was linked to

The message to the player that gets sent when the player links their discord account.

MinecraftAccountAlreadyLinked

The message to the player if they try to link their discord account but they're already linked.

LinkedCommandSuccess

PlaceholdersDescription
%name%the discord username of the Discord user that the user's Minecraft account is linked to

The message that appears to a linked player when they run /discordsrv linked.

UnlinkCommandSuccess

PlaceholdersDescription
%name%the discord username of the Discord user that the user's Minecraft account was linked to

The message that appears to a linked player when they run /discordsrv unlink.

MinecraftNoLinkedAccount

The message that appears to an unlinked player when they try to use /discordsrv linked or /discordsrv unlink

LinkingError

The message that appears to a player if the linking system did not register.

MinecraftNobodyFound

PlaceholdersDescription
%target%the input that led to no results being found

The message that appears to the player/console if /discord linked %target% is not found.