Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Don't change this.
- config-version: 4
- # You will need to create a new application on
- # https://discordapp.com/developers/applications/me/create
- #
- # Give it a sensible name then click 'Create App'.
- # Scroll down and click 'Create a Bot User'.
- # Then reveal the bot token where it says 'Token: click to reveal'.
- # Finally paste this token here
- bot-token: NDc5NDMwNzIyNDI0NDA2MDE2.DlZIVA.rYV3wAO_fTXEmxi6fEGr30kmiKU
- # Set this to the ID of the guild that the bot will be used
- # for and any in-game functionality will take effect here.
- # Get this by enabling Developer Mode in User Settings ->
- # Appearance and scrolling down to the advanced section. Once
- # enabled, right click on the guild, select 'Copy ID' and
- # paste it here.
- guild-id: 475404629212135454
- # This is whether you are using BungeeCord. Install the plugin
- # on a BungeeCord server as well if you are.
- bungee: false
- # This is the settings for MySQL, if you wish to use it for
- # data. If MySQL is disabled, YAML will be used by default.
- mysql:
- # Whether or not to use MySQL for data.
- enabled: false
- # The IP of the database.
- ip: 127.0.0.1
- # The name of the database.
- database: discord_minecraft
- # The username for the database user.
- username: username
- # The password for the database user.
- password: password
- # These are the in-game messages that can be configured.
- messages:
- invalid-usage: '&8(&9!&8)&7Invalid command usage.'
- how-to-link: '&8(&9!&8) &7Link your discord account by using &b/discordlink {Discord Name}&7. Please note the Discord Name should also contain the disciminator (eg. #1234) You will then be sent a DM by our bot where you should respond with &b''?confirm''&7.'
- already-linked: '&8(&9!&8) &7You have already linked your account.'
- check-discord: '&8(&9!&8) &7A message has been sent to you on Discord. Please check your DMs!'
- error-sending-dm: '&8(&9!&8) &7An error occurred sending you a DM (please check that you''re in our server and accepting DMs).'
- sent-message-to: '&8(&9!&8) &7Message sent to: &b{channel}'
- toggled-discord-chat: '&8(&9!&8) &7Discord chat has been toggled: &b{status}.'
- # This is what is put before commands. For example,
- # when you do ?msg on a bot, the ? is the command
- # prefix.
- command-prefix: '?'
- # This is what the bot account will be shown to be playing
- # in Discord.
- bot-game: Dyonic
- # This is the message that will be sent if the user
- # does not have the correct permissions to execute the
- # command.
- no-permission-message: '**Error**: You do not have permission to execute this command.'
- # Message when the condition [minArgs] is false.
- not-enough-args-message: '**Error**: Incorrect usage.'
- # Message when the condition [maxArgs] is false.
- too-many-args-message: '**Error**: Incorrect usage.'
- # Message when the condition [argsIsInt] or [argIsNumber] is false.
- invalid-args-message: '**Error**: Incorrect usage.'
- # Message when the condition [isNameOfOnlinePlayer] is false.
- player-offline-message: '**Error**: Player not found.'
- confirm-link-message: '{player} tried to link their Minecraft account to this Discord user account. Please type **?confirm** within **10 minutes**. If this wasn''t you, nothing will happen if you ignore this message.'
- discord-say-message: '**From Minecraft ({player})**: {message}'
- ################
- ### Commands ###
- ################
- # You can simply add commands to the bot as seen below:
- # This example is fully annotated and shows an implementation
- # of all functionality. It is recommended to save a copy of
- # this for future reference, but if you lose it you can
- # find it on the resource page.
- #
- # In this particular example, we are making a command that
- # allows moderators to message online players from Discord.
- #
- # Create a command by simply creating a new config key named
- # "command-{name}" with {name} being the command that should
- # be executed, for example in ?msg, "msg" is the name.
- command-msg:
- # Within this, create a key for role. Set this to the name
- # of the role, or "everyone" if anyone can use it.
- role: Moderator
- # Here you can set the conditions required for the command
- # to successfully execute and call the actions (lower down).
- # A list of all conditions with detailed descriptions can
- # be found on the resource page.
- #
- # Please note that conditions are checked in order and will
- # stop being checked once one is false.
- conditions:
- # Here, we are checking that the amount of arguments is at
- # least 2. This because we need to supply the name of the
- # user and at least one word for the message.
- - '[minArgs] 2'
- # The player's name is the first argument, so we are checking
- # that the first argument matches the name of an online
- # player.
- - '[isNameOfOnlinePlayer] 1'
- # Actions are what will occur if all of the conditions evaluate
- # as true. The format is similar to that of the conditions section:
- # giving the type of action, then any data that goes with it. As
- # with conditions, we work chronologically through the list of
- # actions.
- actions:
- # This sends a message to player in the first argument, containing
- # the sender's Discord name and the rest of the arguments.
- - '[messagePlayer] {1}|&lDISCORD: &r{SENDER} >> &o{2+}'
- # This responds to the command, notifying the sender that the
- # message has been sent to the player.
- - '[botMessage] :white_check_mark: Message has been delivered.'
- # If this is disabled, roles will not sync between Minecraft and Discord.
- enable-role-sync: true
- # This is the command that will be executed when the player links their
- # account with Discord. Set to 'none' for no command to be executed. The
- # {PLAYER} variable is the name of the player who has linked their account.
- link-reward-command: 'msg {PLAYER} hello'
- # Here you can add roles that sync between Discord and Minecraft (for users
- # have linked their accounts). The Discord role should be listed here. They
- # can then be synced by giving the rank in Minecraft the permission:
- #
- # discordminecraft.syncrank.{rank}
- # For the given example (Moderator) you would give the rank the permission
- # discordminecraft.syncrank.Moderator
- roles:
- - Owner
- - Manager
- - Admin
- - Sr. Mod
- - Mod
- - Trainee
- - Dyo
- - Admiral
- - Cadet
- - Rookie
- # Here you can change options for the chat sync feature.
- chat-sync:
- # Whether to enable chat sync.
- enabled: false
- # ID of channel to be used, where messages are sent.
- # Get this by enabling Developer Mode in User Settings ->
- # Appearance and scrolling down to the advanced section. Once
- # enabled, right click on the channel, select 'Copy ID' and
- # paste it here.
- channel: PUT CHANNEL ID HERE
- # How the messages will be formatted in-game and in Discord.
- # %s (sender name)
- # %m (message)
- chat-format: '&e&l%s &f>> &e%m'
- discord-chat-format: '**%s**: %m'
- # Whether players will automatically be able to see chat
- # sync messages when they login. If this is disabled, they
- # will have to manually enable this every login typing /tdc.
- enable-on-join: true
- # Settings for the /discord command. The intention of this command
- # is to direct players to the Discord server.
- discord-command:
- # Set to true to enable this command.
- enabled: true
- # An invite link to the Discord server.
- discord-link: https://discord.gg/nE6HBd
- # The message to send when the command is activated. The {LINK}
- # variable is the instant invite link specified above.
- message: '&8(&9!&8) &7Join our Discord at: &bHere!'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement