描述
此 Spigot 插件适用于最新版本的 Minecraft,在玩家加入、离开、执行特定命令、进行某些操作或服务器启动/关闭时,会自动向推送服务 (ntfy.sh) 发送通知。
这有助于服务器所有者和玩家实时了解服务器活动。
想法
如果您有更多事件的想法,请提交 issue。
Java 版本
兼容 Minecraft 1.20.6,需要 Java 21。
功能
- 在服务器启动或关闭时发出通知。
- 当以下情况发生时发送推送通知:
- 玩家加入或离开服务器。
- 玩家解锁了进度(advancement)。
- 玩家创建传送门。
- 玩家死亡(包括死亡消息)。
- 执行
/spe [消息内容] 以获取自定义通知(需自定义权限)。
- 更改消息格式或完全禁用/启用它们。
- 轻松集成 ntfy.sh 推送服务。
- 快速设置,只需最少配置。
- 检查并通知特定的玩家命令:
/op
/deop
/ban
/banip
/pardon
/pardonip
/whitelist
设置
要设置 SimplePushEvents 插件,请按照以下步骤操作:
-
安装插件:下载并将 SimplePushEvents 插件放入您的 Spigot Minecraft 服务器的 plugins 目录中。
-
配置插件:首次运行时,插件将在 plugins/simplepushevents 目录中生成一个配置文件 (options.yml)。编辑此文件以自定义您的消息和设置。
-
下载 ntfy.sh App:访问 ntfy.sh 网站,并从 Play Store 或 App Store 下载 ntfy 应用。ntfy.sh 服务完全免费使用。
-
订阅推送频道:打开 ntfy 应用并订阅 donottouch.pushchannel 配置设置中指定的主题。这将允许您接收由插件发送的通知。
-
重启/重载服务器:重启或重载您的 Spigot Minecraft 服务器以应用配置更改。
-
接收通知:现在,每当玩家加入、离开或服务器启动/关闭时,插件将根据您的配置设置自动发送通知。
插件配置
在部署插件之前,请确保在 options.yml 文件中配置以下参数:
donottouch:
configexists: true
pushchannel: 7fc647dd98
messages:
general:
title: 'Minecraft Server:'
startup:
status: true
content: The server is online now!
poweroff:
status: true
content: The server is shutting down!
chatcommand:
status: true
content: '[%PLAYER%] wrote: %MESSAGE%'
permission: spe.usechatcommand
player:
advancement:
status: true
content: 'The player %PLAYER% unlocked the advancement: %NAME%'
join:
status: true
content: The player %PLAYER% joined!
leave:
status: true
content: The player %PLAYER% left!
count:
status: true
content: 'Players online right now: %ONLINE%/%MAX%'
death:
status: true
content: 'The Player %PLAYER% died: %MESSAGE%'
portalcreation:
status: true
content: The Player %PLAYER% created a portal at %LOCATION%
command:
disableall: false
op:
status: true
content: The player %PLAYER% executed /op for %TARGET% !
deop:
status: true
content: The player %PLAYER% executed /deop for %TARGET% !
ban:
status: true
content: The player %PLAYER% executed /ban for %TARGET% !
banip:
status: true
content: The player %PLAYER% executed /ban-ip for %TARGET% !
pardon:
status: true
content: The player %PLAYER% executed /pardon for %TARGET% !
pardonip:
status: true
content: The player %PLAYER% executed /pardon-ip for %TARGET% !
whitelist:
status: true
content: 'The player %PLAYER% used a whitelist command: %CONTENT%'
注意
请确保 ntfy.sh 推送服务可从您的服务器访问,因为此插件依赖它来发送通知。该服务免费,只需要您下载应用并订阅特定的推送频道主题。
免责声明
本插件按“原样”提供,不提供任何担保。开发者不对因使用而产生的任何问题或损害承担责任。
Description
This Spigot plugin, for use with the latest Minecraft version, automatically sends notifications to a push service (ntfy.sh), when players join, leave, execute specific commands, do certain things or the server starts/shuts down.
This helps server owners and players stay informed about server activities in real-time.
Ideas
If you have ideas for more events, open an issue.
Java Version
Compatible with Minecraft 1.20.6 and requires Java 21.
Features
- Notifies when the server starts up or shuts down.
- Sends push notifications when
- a player joins or leaves the server.
- a player unlocks an advancement.
- a player creates a portal.
- a player dies (including the death message).
- executes
/spe [message content] for custom notifications (with custom permissions).
- Change the message format or disable/enable them entirely.
- Easy integration with the ntfy.sh push service.
- Quick setup with minimal configuration required.
- Checks and notifies for specific player commands:
/op
/deop
/ban
/banip
/pardon
/pardonip
/whitelist
Setup
To set up the SimplePushEvents plugin, follow these steps:
-
Install the Plugin: Download and place the SimplePushEvents plugin in your Spigot Minecraft server's plugins directory.
-
Configure the Plugin: On the first run, the plugin will generate a configuration file (options.yml) in the plugins/simplepushevents directory. Edit this file to customize your messages and settings.
-
Download the ntfy.sh App: Visit the ntfy.sh website and download the ntfy app from the Play Store or App Store. The ntfy.sh service is completely free to use.
-
Subscribe to the Push Channel: Open the ntfy app and subscribe to the topic specified in the donottouch.pushchannel configuration setting. This will allow you to receive notifications sent by the plugin.
-
Restart/Reload Server: Restart or reload your Spigot Minecraft server to apply the configuration changes.
-
Receive Notifications: The plugin will now automatically send notifications according to your configured settings whenever players join, leave, or the server starts up or shuts down.
Plugin Configuration
Before deploying the plugin, ensure you configure the following parameters in the options.yml file:
donottouch:
configexists: true
pushchannel: 7fc647dd98
messages:
general:
title: 'Minecraft Server:'
startup:
status: true
content: The server is online now!
poweroff:
status: true
content: The server is shutting down!
chatcommand:
status: true
content: '[%PLAYER%] wrote: %MESSAGE%'
permission: spe.usechatcommand
player:
advancement:
status: true
content: 'The player %PLAYER% unlocked the advancement: %NAME%'
join:
status: true
content: The player %PLAYER% joined!
leave:
status: true
content: The player %PLAYER% left!
count:
status: true
content: 'Players online right now: %ONLINE%/%MAX%'
death:
status: true
content: 'The Player %PLAYER% died: %MESSAGE%'
portalcreation:
status: true
content: The Player %PLAYER% created a portal at %LOCATION%
command:
disableall: false
op:
status: true
content: The player %PLAYER% executed /op for %TARGET% !
deop:
status: true
content: The player %PLAYER% executed /deop for %TARGET% !
ban:
status: true
content: The player %PLAYER% executed /ban for %TARGET% !
banip:
status: true
content: The player %PLAYER% executed /ban-ip for %TARGET% !
pardon:
status: true
content: The player %PLAYER% executed /pardon for %TARGET% !
pardonip:
status: true
content: The player %PLAYER% executed /pardon-ip for %TARGET% !
whitelist:
status: true
content: 'The player %PLAYER% used a whitelist command: %CONTENT%'
Note
Ensure the ntfy.sh push service is accessible from your server, as this plugin depends on it to send notifications. The service is free and only requires you to download the app and subscribe to the specific push channel topic.
Disclaimer
This plugin is provided as-is without any warranty. The developer holds no responsibility for any issues or damages arising from its usage.
评论 0
登录后参与评分
还没有评论,来抢沙发吧