SimplePushEvents

插件

· 作者 cirandev

使用 SimplePushEvents 免费接收 Minecraft 服务器的实时推送通知,随时掌握最新动态!

0 本站下载 0 关注 更新于 1 年前

最新 0.0.5 · 1.21.6 · Spigot

一键开服(送7天)

描述

此 Spigot 插件适用于最新版本的 Minecraft,在玩家加入、离开、执行特定命令、进行某些操作或服务器启动/关闭时,会自动向推送服务 (ntfy.sh) 发送通知。 这有助于服务器所有者和玩家实时了解服务器活动。

想法

如果您有更多事件的想法,请提交 issue。

Java 版本

兼容 Minecraft 1.20.6,需要 Java 21。

功能

  • 在服务器启动或关闭时发出通知。
  • 当以下情况发生时发送推送通知:
    • 玩家加入或离开服务器。
    • 玩家解锁了进度(advancement)。
    • 玩家创建传送门。
    • 玩家死亡(包括死亡消息)。
    • 执行 /spe [消息内容] 以获取自定义通知(需自定义权限)。
  • 更改消息格式或完全禁用/启用它们。
  • 轻松集成 ntfy.sh 推送服务。
  • 快速设置,只需最少配置。
  • 检查并通知特定的玩家命令:
    • /op
    • /deop
    • /ban
    • /banip
    • /pardon
    • /pardonip
    • /whitelist

设置

要设置 SimplePushEvents 插件,请按照以下步骤操作:

  1. 安装插件:下载并将 SimplePushEvents 插件放入您的 Spigot Minecraft 服务器的 plugins 目录中。

  2. 配置插件:首次运行时,插件将在 plugins/simplepushevents 目录中生成一个配置文件 (options.yml)。编辑此文件以自定义您的消息和设置。

  3. 下载 ntfy.sh App:访问 ntfy.sh 网站,并从 Play Store 或 App Store 下载 ntfy 应用。ntfy.sh 服务完全免费使用。

  4. 订阅推送频道:打开 ntfy 应用并订阅 donottouch.pushchannel 配置设置中指定的主题。这将允许您接收由插件发送的通知。

  5. 重启/重载服务器:重启或重载您的 Spigot Minecraft 服务器以应用配置更改。

  6. 接收通知:现在,每当玩家加入、离开或服务器启动/关闭时,插件将根据您的配置设置自动发送通知。

插件配置

在部署插件之前,请确保在 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 推送服务可从您的服务器访问,因为此插件依赖它来发送通知。该服务免费,只需要您下载应用并订阅特定的推送频道主题。

免责声明

本插件按“原样”提供,不提供任何担保。开发者不对因使用而产生的任何问题或损害承担责任。

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

评论 0

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

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源