Skip to content
Angeschossen edited this page Jan 5, 2024 · 10 revisions

An optional Discord Bot to provide additional features to Lands is available for download here.

Setup instructions:

1. Stop your server.

3. Install LandsDiscordBot: https://www.spigotmc.org/resources/74047/

4. Start the Server to let the Config File generate, and then stop it again.

5. Create or edit an existing Discord Application in your Discord Developer Portal.

5.1. You can use this URL to add the bot with all required permissions:
https://discord.com/api/oauth2/authorize?client_id=ENTER_BOT_ID_HERE&permissions=76880&scope=bot%20applications.commands
Replace ENTER_BOT_ID with the application ID of your bot. It can be found at the general information page.
5.2 Enable the Server Members and Message Content Intent in the bot section. (Example)

6. Insert the Bot Token into the LandsDiscordBot config.yml file, which is located at /plugins/LandsDiscordBot

# Bot configuration
bot:
  # Enter your bot token here.
  # How to setup a Discord bot: https://discordpy.readthedocs.io/en/latest/discord.html
  token: 'kmpndewdoe2idsd3r2308rh2rjetruwd0932r'

You can find the bot token on the Bot page.

7. Install a Discord <-> Minecraft Link Manager that hooks into the LandsDiscordBot Plugin

DiscordSRV support is built into LandsDiscordBot. However, you can also add support for other link manager plugins by hooking into the LandsDiscordBotAPI. While you can use the LandsDiscordBot without any link manager plugin installed, it is recommended to install one to be able to use all features of the bot.

8. Configure the Chat Category in the LandsDiscordBot Config

To get the ID of a Discord category or channel, you must have the Developer Mode enabled in your Discord client.

# Categories configuration
categories:
  land-chat:
    # Id of the category for the `/channel create <land>` command
    # This requires a long (number) id. You can use Discord developer mode to get these.
    id: 48721747756795882

9. Make other desired Configurations and restart the Server