Demo Video
Installation and Setup
1. Download the plugin.
2. Upload the plugin to the
3. Create a Discord Bot from the Discord Developer Portal
5. Open your plugins folder and navigate to the plugin's folder, named
6. Open the "config.yml" file in the plugins folder and replace "YOUR_BOT_TOKEN_HERE" with the bot token that you copied in step 3d.
7. Reload the plugin.
Minecraft Commands
Preview
Links
Support Server: https://discord.gg/KkS6yP8
Installation and Setup
1. Download the plugin.
2. Upload the plugin to the
plugins
folder.3. Create a Discord Bot from the Discord Developer Portal
3a. Click on "New Application", give it a name and Click the "Create" button.
3b. Click on "Add Bot" button under "Settings" tab
3c. Click on "Reset Token"
3d Copy the token
4. Start your server.5. Open your plugins folder and navigate to the plugin's folder, named
DiscordRemoteCommands
.6. Open the "config.yml" file in the plugins folder and replace "YOUR_BOT_TOKEN_HERE" with the bot token that you copied in step 3d.
7. Reload the plugin.
(METHOD 1) Reload the plugin using the command
/drc-reload
(METHOD 2) Restart the server.
Minecraft Commands
/drc-reload
- Reload the configuration file (and restart the discord bot)Preview
YAML:
# Discord Remote Commands Configuration
# Discord Bot Token
# Available at https://discord.com/developers/applications
DISCORD_TOKEN: "YOUR_BOT_TOKEN_HERE"
# Commands that will show up in discord.
commands:
# Command Name (Example: say)
say:
# Where should the command be registered? (Currently only "discord" is supported.)
platform: "discord"
# The description of the command
description: "A command that sends a message in both minecraft & discord"
# Only show the "No Permission Message" to the user (aka true)
permissionMessageHidden: true
# Any of the following will grant permission to run this command.
permissions:
- type: "role"
data: "RoleId"
- type: "user"
data: "UserId"
arguments:
message: # Name of the argument
type: "string"
required: true
max_length: 100 # Maximum length of the argument
min_length: 5 # Minimum length of the argument
actions:
- platform: "discord"
action: "replyhidden"
content: "Broadcast sent!"
- platform: "discord"
action: "send_message"
content: "The message broadcasted was: {message}"
- platform: "minecraft"
action: "broadcast"
content: "&8[&cBroadcast&8] &f{message}"
# Command Name (Example: mcban)
mcban:
platform: "discord"
description: "Ban someone in minecraft"
permissionMessageHidden: false
permissions:
- type: "role"
data: "RoleId"
arguments:
username:
type: "string"
required: true
max_length: 16
min_length: 1
reason:
type: "string"
required: false
max_length: 256
actions:
- platform: "discord"
action: "reply"
content: "Banned the player: {username}"
- platform: "minecraft"
action: "command"
content: "ban {username} {reason}"
logging:
# Either "webhook" or "bot"
type: "bot"
# webhook_url is only used when type is set to "webhook"
# https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks
# Generate and create ur webhook url
webhook_url: "WEBHOOK_URL"
# channel_id is only used when type is set to "bot"
# The bot must be in the same server as that channel id and have access to send messages
channel_id: "CHANNEL_ID"
events:
command:
enabled: true
message: "{username} (`{userid}`) used **{command_name}** in {channel_name} (`{channel_id}`) ||/{command_name} {args}||"
startup:
enabled: true
message: "Discord Remote Commands has started."
shutdown: # May not send if server is killed (rather than stopped)
enabled: true
message: "Discord Remote Commands has shut down."
Links
Support Server: https://discord.gg/KkS6yP8