Appearance
Setup
Requirements
- Java 17+
- Discord bot token
Installation
- Download the correct jar for your server platform.
- Drop the jar into
plugins/. - Start the server once to generate
plugins/Dis2FA/config.yml. - Edit
config.ymlwith your Discord bot token and channel IDs. - Restart the server.
- Run
/da statusto verify configuration.
Discord Bot Setup
- Create a Discord application and add a bot.
- Copy the bot token into
bot-tokeninconfig.yml. - Enable privileged intents in the Discord Developer Portal: Server Members Intent and Message Content Intent.
- Invite the bot to your server with permissions: View Channels, Send Messages, Embed Links, Read Message History, Use Application Commands.
- If you use the chat bridge webhook, create the webhook in the target channel and copy the URL into
chat-bridge.webhook-url.
Getting Discord IDs
- Enable Developer Mode in Discord (User Settings -> Advanced).
- Right-click a server, channel, or role and choose Copy ID.
- Use those IDs for
discord.guild-id,alerts-channel-id,discord.link-channel-id, anddiscord.allowed-role-ids.
Minimal Config Example
Minimum config to get linking and approvals working:
yaml
bot-token: "YOUR_BOT_TOKEN"
discord-invite: "discord.gg/yourinvite"
alerts-channel-id: "123456789012345678"
discord:
guild-id: "123456789012345678"
allow-guild-link: true
link-channel-id: "123456789012345678"Notes:
discord.guild-idis strongly recommended so slash commands register quickly.alerts-channel-idis required for device approval requests.discord.link-channel-idis where link buttons and link codes are handled. If empty, it falls back tochat-bridge.discord-channel-id, thenalerts-channel-id.discord.allowed-role-idslimits access to specific Discord roles.discord.require-memberforces users to be in the Discord server.