Yurushi
作者:rebot | 分类:模组
Minecraft 版本: 1.21.11
平台: fabric
标签: management
Yurushi
Discord Integration Whitelist Mod for Fabric. Simplify your server access management.
Features
- Discord Integration: Players request whitelist access via a Discord form (Modal).
- One-Click Approval: Admins can approve or deny requests directly from Discord with a single button click.
- Automated Communication:
- Sends a DM to the player upon approval or denial.
- Updates the original request message to reflect the decision.
- Customizable Messages: Fully configurable text and embed styles via
messages.toml. - Role-Based Access: Restrict whitelist management to specific Discord roles using
whitelistRole. - Debug Tools: Visualize your embed configurations with
/debug embeds.
Config
Configuration files are located in config/Yurushi/.
Yurushi.toml
Main plugin configuration.
| Config | Type | Description |
|---|---|---|
botToken |
String | Your Discord Bot Token |
adminChannelId |
String | ID of the Discord text channel where requests are sent |
whitelistRole |
List | List of Role IDs allowed to approve/deny requests |
messages.toml
Customize all bot messages, embeds, and button labels. Supports placeholders like {minecraft_username}, {reason}, etc. (Might not available in all messages).
How to Use
Prerequisites
- A Minecraft server running Fabric with the Yurushi mod installed.
- A Discord Bot with the following:
- Bot Token (from Discord Developer Portal)
Server Members Intentenabled (Privileged Gateway Intents)- Invited to your Discord server with
applications.commandsandbotscopes
Installation
- Download the mod JAR from Releases.
- Place it in your server's
mods/folder. - Start the server once to generate default config files in
config/Yurushi/. - Stop the server and configure
Yurushi.tomlwith your bot token and channel settings. - Restart the server — the Discord bot will come online automatically.
Discord Bot Setup
- Go to Discord Developer Portal and create a new application.
- Navigate to Bot → Reset Token to get your bot token.
- Enable Server Members Intent under Privileged Gateway Intents.
- Go to OAuth2 → URL Generator, select
botandAdministratorscopes. - Copy the generated URL and invite the bot to your server.
- Paste the bot token in
Yurushi.toml(botToken).
Player Workflow
Players can request whitelist access directly from Discord:
- Use the
/registerslash command in any channel the bot can see. - A modal will appear asking for:
- Minecraft Username (required)
- Description (optional) – introduce yourself or explain why you want to join.
- After submitting, a confirmation message appears, and the request is sent to the admin channel.
Admin Workflow
Admins with the configured whitelistRole can manage requests:
- Whitelist requests appear in the configured
adminChannelIdwith Approve and Deny buttons. - Click Approve to:
- Add the player to the Minecraft server whitelist.
- Send a DM to the player notifying them of approval.
- Update the request embed to show "Approved" status.
- Click Deny to:
- Open a modal to enter a denial reason.
- Send a DM to the player with the reason.
- Update the request embed to show "Denied" status.
Commands
Discord Slash Commands
| Command | Description |
|---|---|
/register |
Opens the whitelist registration form for players |
/debug embeds |
Preview all configured embed styles (Admin only) |
/ping |
Check if the bot is online |
Minecraft Commands
| Command | Permission | Description |
|---|---|---|
/yurushi reload |
yurushi.command.reload (OP Level 3+) |
Reload configuration files without restarting the server |
Bug Reports & Suggestions
If you encounter any bugs or have suggestions for improvements, please open an issue on the GitHub Issues page.
请登录后举报
暂无评论,抢个沙发吧~