已知问题与配置
请注意: 目前可能存在一些错误;我正在积极完善论坛页面,但在此之前,您可以通过 Discord 与我联系。请在类别插件论坛的 #console-typer 频道中发送消息:。
以下是该插件的工作原理:
-
配置:插件首次编译后,您需要通过编辑 config.yml 文件进行配置。在该文件中,将占位符值替换为您的 Discord 机器人令牌(从您邀请到 Discord 服务器的机器人获取)以及您希望发送命令的目标频道的 ID。此设置过程类似于流行的 DiscordSRV 插件的配置方式。
-
机器人权限:请确保该机器人在 Discord 频道中具有必要的权限,包括 Message Content(消息内容)权限和 Administrator(管理员)角色,以允许其发送和接收命令。
-
命令执行:配置完成后,插件将监听指定 Discord 频道中的命令。要执行服务器命令,只需在命令前加上 command 前缀即可。例如:
command say hi
command ban brogamer123
command stop
随后,插件将在您的 Minecraft 服务器上执行这些命令,效果等同于直接在控制台中输入。
-
实时管理:此设置允许您随时随地、使用任何安装了 Discord 的设备来管理您的服务器,使服务器管理更加灵活便捷。
Known Issues and Configuration
Please note: Errors may exist; I am actively working on the forum page but for now, you can use my discord at the category plugin forum in the channel #console-typer:
Here's how the plugin works:
-
Configuration: After the plugin compiles for the first time, you'll need to configure it by editing the config.yml file. In this file, replace the placeholder values with your Discord bot's token (from the bot you've invited to your Discord server) and the ID of the specific channel where you want to send commands. This setup process is similar to how the popular DiscordSRV plugin is configured.
-
Bot Permissions: Ensure that the bot has the necessary permissions in the Discord channel, including Message Content permission and Administrator role, to allow it to send and receive commands.
-
Command Execution: Once configured, the plugin will listen for commands in the specified Discord channel. To execute a server command, simply type it with the command prefix. For example:
command say hi
command ban brogamer123
command stop
The plugin will then execute these commands on your Minecraft server as if they were entered directly into the console.
-
Real-Time Management: This setup allows you to manage your server in real-time from anywhere, using any device with Discord, making server administration more flexible and convenient.
评论 0
登录后参与评分
还没有评论,来抢沙发吧