Mkn Server Management On Discord

插件

· 作者 MKN

一个 Velocity 插件,允许你通过 Discord 管理 Minecraft 服务器

0 本站下载 0 关注 更新于 5 个月前

最新 1.0.3 · 26.1.2 · Velocity

一键开服(送7天)

--日本語

此插件允许您通过 Discord 管理后端服务器,并提升游戏内生活质量(QOL)。

主要功能

  1. 能够从 Discord 和游戏内通过命令启动后端服务器。
  2. 能够从 Discord 执行游戏内命令。
  3. 能够从 Discord 执行专用命令 /whitelist 和 /stop。
  4. 各服务器与 Discord 之间的聊天同步功能。
  5. 使用 /<服务器名> 在服务器间切换的功能。
  6. 全局标签列表

配置文件说明

要从 Discord 执行游戏内命令,本插件使用 Minecraft 标准的 rcon 功能。 请务必“关闭”rcon 端口。 要使用 rcon,必须在 server.properties 中启用它。

  1. 将 enable-rcon=false 改为 true。
  2. rcon.password:指定一个坚不可摧的密码。
  3. rcon.port=25575:指定一个不与其他端口冲突的端口。务必关闭该端口。
discord {
    token="YOUR_BOT_TOKEN_HERE"  //Velocity 的主 BOT。聊天同步也由该 BOT 负责。
    channel-id="000000000000000000"  //输入您要同步聊天的频道 ID。
}
status-check {
    interval=5 //下方 BOT 的更新频率
}
status-bots=[  
    {
        server-name=lobby  //请输入服务器名称。插件会引用此服务器名称。
        token="BOT_TOKEN"  //此 BOT 用于服务器状态及向后台服务器输入命令。
        start-bat-path="C:\\path\\to\\start.bat" //请指定服务器 bat 文件所在的目录。路径分隔符必须使用 \\ 。
        rcon-address="127.0.0.1"  //请输入服务器机器的地址。如果所有内容都在同一台本地机器上,保持默认即可。
        rcon-port=25575  //请输入不与其他端口冲突的地址。
        rcon-password=password  //请输入密码。
    }
]

BOT 安装方法

请使用以下 URL 创建 BOT。 在 “Bots” 选项卡中启用 “Server Members Intent” 和 “Message Content Intent”,然后在 OAuth2 下的 “Administrators” 中启用 “bot”、“applications.commands” 和 “管理员”,并将 BOT 邀请到您的服务器。

命令使用方法

Discord 输入 /,选择具有所需功能的 BOT 图标,然后选择要执行的命令。

游戏内 您可以使用 /start-server <servername> 启动服务器。

制作此模组耗费了大量时间,如果您喜欢它,您的支持将不胜感激。

--English

This plugin allows you to manage your backend server via Discord and improves in-game quality of life.

Main Features

  1. Ability to start the backend server via commands from both Discord and within the game.
  2. Ability to execute in-game commands from Discord.
  3. A feature that allows you to execute the dedicated commands “/whitelist” and “/stop” from Discord
  4. Chat synchronization between each server and Discord.
  5. Ability to switch between servers using /<server name>.
  6. Global Tab List

Configuration File Explanation

To execute in-game commands from Discord, this plugin uses Minecraft’s standard rcon feature. Please ensure the rcon port is “closed.” To use rcon, you must enable it in server.properties.

  1. Change enable-rcon=false to true.
  2. rcon.password: Specify a strong, unbreakable password.
  3. rcon.port=25575: Specify a port that does not conflict with others. Be sure to close the port.
discord {
    token="YOUR_BOT_TOKEN_HERE"   //Velocity's main bot. This bot also handles chat synchronization.
    channel-id="000000000000000000"   //Enter the channel ID for which you want to synchronize chat.
}
status-check {
    interval=5 // Update frequency for the bot below
}
status-bots=[  
    {
        server-name=lobby     // Enter the server name. The plugin references this server name.
        token="BOT_TOKEN"     // This bot is used for server status and command input to the backend server.
        start-bat-path="C:\\path\\to\\start.bat" // Specify the directory of the server's batch file. Be sure to use \\ as the path separator.
        rcon-address="127.0.0.1"      //Enter the server machine's address. If everything is on the same local machine, the default setting is fine.
        rcon-port=25575       //Enter an address that does not conflict with other ports.
        rcon-password=password      //Enter the password.
    }
]

How to Set Up the Bot

Please create the bot using the URL below. Enable “Server Members Intent” and “Message Content Intent” in the ‘Bots’ tab, then enable “bot applications.commands” under “Administrators” in OAuth2 and invite the bot to your server.

How to Use Commands

Discord Type /, select the icon of the bot with the feature you want to use, and then select the command you want to execute.

In-Game You can start a server with /start-server <servername>.

I’ve spent a tremendous amount of time creating this mod, so if you like it, please consider supporting me.

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源