Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Don't change this
- config-version: 2
- # 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: '*****'
- # 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: *****
- # This is whether you are using BungeeCord. Install the plugin
- # on a BungeeCord server as well if you are.
- bungee: true
- # Presence for the bot.
- presence:
- enabled: true
- # Case sensitive. One from: DO_NOT_DISTURB, IDLE, INVISIBLE, OFFLINE, ONLINE, UNKNOWN
- status: ONLINE
- # Case sensitive. One from DEFAULT, LISTENING, WATCHING
- type: DEFAULT
- # The text the bot is playing / listening to / watching
- text: DiscordMinecraft
- # 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: true
- # The IP of the database.
- ip: 127.0.0.1
- # The name of the database.
- database: mc_4?useSSL=false&
- # The username for the database user.
- username: mc_4
- # The password for the database user.
- password: *****
- # The character used before the command.
- bot-prefix: '!'
- role-sync:
- enabled: true
- # The Discord role (case sensitive) that should be synced with Minecraft.
- roles:
- - Admin
- - Moderator
- chat-sync:
- enabled: true
- channel-id: *****
- # How the messages will be formatted in-game and in Discord.
- # %s (sender name)
- # %m (message)
- chat-format: '&e&l%s &f>> &e%m'
- from-discord-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
- console-sync:
- enabled: false
- channel-id: 123456789
- # This is the amount of console logs required for one message
- # to be sent in Discord. Set this to higher the faster your
- # console. This does not affect log messages when interacting
- # with the console from the Discord.
- logs-per-message: 10
- # 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: ****
- # The message to send when the command is activated. The {LINK}
- # variable is the instant invite link specified above.
- message: '&6Join our Discord at: &7&n{LINK}'
- discord-say-command:
- enabled: true
- ################
- ### Messages ###
- ################
- # 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.'
- discord-say-message: '**From Minecraft ({player})**: {message}'
- # These are the in-game messages that can be configured.
- messages:
- no-permission: '&cYou don''t have permission to execute this command!'
- invalid-usage: '&cInvalid command usage.'
- already-linked: '&cYou have already linked your account.'
- sent-message-to: 'Message sent to: {channel}'
- toggled-discord-chat: 'Discord chat has been toggled: {status}.'
- send-on-discord: '&7You need to confirm on Discord! Send the command &a?confirm {code} {username} &7within 10 minutes to confirm!'
- removed-link: '&7Removed link.'
- ################
- ### 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.'
- # These are the commands that will be executed when the player links their
- # account with Discord. Set to `link-reward-commands: []` for no command to
- # be executed. The {PLAYER} variable is the name of the player who has linked
- # their account.
- link-reward-commands:
- - 'msg {PLAYER} hello'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement