MCStatusHook
MCStatusHook 是一个简单且轻量级的插件,不包含任何多余的附加功能。它最初是为我自己的私人(本地托管)服务器制作的,用于在我的服务器下线或上线时通知我的好友,从而免去我手动通知他们的麻烦。
它与 Spigot/Paper 1.18 至 1.21 兼容。
为什么?
本插件主要面向那些不需要花哨的 Discord 集成、仅仅想要一个资源消耗极低的插件的用户,该插件仅通过 Webhook 发送在线和离线消息。具体来说,这更适合那些在有限资源下运行本地托管服务器或私有白名单服务器的用户。服务器在线和离线消息完全可自定义。
如果你需要比简单的“服务器在线”或“离线”消息更多的功能,请使用 DiscordSRV,因为它是一个设计精良且高度可定制的插件。
安装设置
- 下载插件的 .jar 文件,并将其放入你服务器的 plugin 文件夹中。
- 启动(或重启)你的服务器——如果你一开始就在用 /reload 命令,那就不对了。
- 在你希望接收在线和离线消息的 Discord 频道中,进入“编辑频道”。
- 在编辑频道的概览页面,导航到左侧的“集成”选项卡。
- 点击 Webhooks 框,然后点击“新建 Webhook”按钮。
- 根据你的喜好自定义 Webhook 的名称和头像——这将作为 Webhook 消息的显示名称和头像。
- 点击“复制 Webhook URL”。
- 导航到你 Minecraft 服务器的 plugin 文件夹,然后进入 MCStatusHook 文件夹。
- 使用记事本(或你喜欢的文本编辑器)打开 config.yml 文件。
- 将 Webhook URL 粘贴到 webhook_url 配置项对应的 url 值处,替换原有内容。
- 根据需要自定义 online_msg 和 offline_msg 的值,你可以设置任意消息,Webhook 都会将其发送出去!
- 重启你的服务器,搞定!
安装视频教程示例
Webhook 示例图片


MCStatusHook
MCStatusHook is a simple and lightweight plugin with no extra unnecessary features that was made originally for a private (locally hosted) server of mine to notify my friends on Discord when the server went offline or went online, saving me the hassle of having to notify them manually.
It is compatible with Spigot/Paper 1.18 to 1.21.
Why?
This plugin is primarily aimed at those who don't want a fancy Discord integration, and purely just a lightweight plugin that consumes limited resources that only posts online and offline messages through a webhook. Specifically, this may better suit those locally hosting servers or running private whitelisted servers running on limited resources. The server online and offline messages are completely customisable.
If you want more features than a simple the server is online or offline message, use DiscordSRV as it is an extremely well-created and customisable plugin.
Setup
- Download the plugin's .jar file, and place it in your server's plugin folder.
- Start (or restart) your server - you shouldn't be using the /reload command on your server if you are in the first place.
- On the Discord channel you want to send online and offline messages to, head to "Edit Channel".
- Once in the Edit Channel overview, navigate to the "Integrations" tab on the left.
- Press the Webhooks box and then press on the "New Webhook" button.
- Customise the webhook name and profile picture to your choosing - this will be the profile picture and name of the webhook's message.
- Press "Copy Webhook URL".
- Navigate to your minecraft server's plugin folder, then enter the MCStatusHook folder.
- Open the config.yml file in Notepad (or your preferred text editor).
- Paste the webhook URL in place of the existing url next to the webhook_url config setting.
- Customise the online_msg and offline_msg values to your liking, you can set any message and the webhook will send it!
- Restart your server and voila!
Setup Video Example
Webhook Example Images


评论 0
登录后参与评分
还没有评论,来抢沙发吧