OreNotifier

插件

· 作者 Plexiate

通过 Discord 警报实现 Spot X-Ray。自定义并追踪多个方块 + 游戏内通知!

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

最新 1.0.5 · 1.20.1 · Bukkit / Paper

一键开服(送7天)

如果你的服务器存在玩家使用透视(X-Raying)的问题,但又不想使用反透视插件,那么这可能正是你需要的。

此插件会根据你的 config.yml 配置,在玩家挖掘特定方块超过阈值时,向 Discord 发送包含该玩家信息的通知。通知中将显示坐标、世界和方块类型,并支持通过配置 imgur.com 的图片 ID 来添加图片。虽然插件还有进一步完善的空间,但目前主要功能已能正常运行。

权限

  • orenotifier.alerts - 接收警报所需的权限。
  • orenotifier.reload - 允许重新加载配置。
  • orenotifier.toggle - 允许切换警报开关。

命令

  • /orenotifier reload - 重新加载配置。
  • /orenotifier toggle - 开启/关闭警报。

工作原理?

通过追踪可配置的矿石开采量,我们可以记录这些数据,以便当玩家超过设定的阈值时,向 Discord 发送通知。你可以为每种方块单独自定义触发警报的阈值,以及 Webhook 消息和游戏内消息的颜色。当玩家挖掘足够数量的常见方块(石头、深板岩、凝灰岩)或不常见方块(下界岩、玄武岩)时,阈值将会重置。这样,使用透视的玩家将根据其开采的矿石与常见/不常见方块的比例来触发警报。

CustomOres:
    diamond_ore: # 定义我们要追踪的矿石名称。
        msg-color: "&b" # 设置聊天中警报显示的矿石名称颜色。
        thumbnail: xXkIhRR # 嵌入消息右侧的图片,通过 imgur 获取。
        threshold: 9 # 触发警报所需的方块数量。
        webhook-color: # 嵌入消息的颜色。
            r: 150
            g: 255
            b: 255

致谢: 感谢 RandomWebUser 帮助我进行 X 光... 我是说测试本插件。

*Discord: @Plexiate 邮箱: hi@plexiate.com

配置

# 我们是一个拥有永久地图的小型白名单原版 SMP 服务器,地图生成于 2021 年 1 月 28 日。

# 你可以在 https://crafters.one/Discord 加入我们,或者在这里查看我们的插件 https://www.spigotmc.org/resources/authors/plexiate.117947/

# Webhook 设置
prefix: "&8[&bOreNotifier&8]"

webhook: webhook_url
webhook-enabled: true

# 这是你需要在两次矿石开采之间挖掘的石头、深板岩、凝灰岩和下界岩的数量
# 用于重置警报等级。请根据你的喜好进行调整 :)
reset-threshold: 95 # 石头、深板岩和凝灰岩的总和
nether-threshold: 250 # 下界岩和玄武岩的总和

# 用于通知的矿石列表 / 其他方块
CustomOres:
  diamond_ore:
    msg-color: "&b"
    thumbnail: xXkIhRR
    threshold: 9
    webhook-color:
      r: 150
      g: 255
      b: 255
  deepslate_diamond_ore:
    msg-color: "&b"
    thumbnail: ihJgnuM
    threshold: 9
    webhook-color:
      r: 0
      g: 102
      b: 102
  ancient_debris:
    msg-color: "&5"
    thumbnail: DNvvUsr
    threshold: 3
    webhook-color:
      r: 85
      g: 35
      b: 0
  gold_ore:
    msg-color: "&e"
    thumbnail: JTrQfFY
    threshold: 15
    webhook-color:
      r: 255
      g: 255
      b: 0

  # 不要动这些。这里是它们的家。
  stone:
    threshold: 0
  deepslate:
    threshold: 0
  tuff:
    threshold: 0
  netherrack:
    threshold: 0
  basalt:
    threshold: 0

# 消息 - ( 占位符包括 {PREFIX}, {USERNAME}, {BLOCK}, {AMOUNT} 和 {COORDS} )
messages:
  server-chat-message: "{PREFIX} &a{USERNAME} &7-> {BLOCK}&7."
  reload-message: "{PREFIX} &c此时我们建议执行 /reload 命令。 ."
  no-permission: "&f未知命令。输入 ''/help'' 获取帮助。"

webhook-settings:
  title: "{PLUGIN} | {USERNAME}"
  description: "**{USERNAME}** -> **{BLOCK}**"
  footer: "插件版本: {VERSION}"

# 缩略图 URL 通过 imgur (https://imgur.com) 的图片 ID 工作
# Kasprr 表示从长远来看这可能不是个好主意,如果遇到任何问题,请发送邮件给我
# 发送至 plexiate@crafters.one
# 这里有一些我已经上传的其他方块供你欣赏。
emerald_ore-thumbnail: "4USvGhH"
deepslate_emerald_ore-thumbnail: "uwCGbpB"
gold_ore-thumbnail: "JTrQfFY"
deepslate_gold_ore-thumbnail: "DnTMYwe"
nether_gold_ore-thumbnail: "iIH6NUk"
iron_ore-thumbnail: "6I7zQyC"
deepslate_iron_ore-thumbnail: "07QlXdh"
copper_ore-thumbnail: "LCm0dHJ"
deepslate_copper_ore-thumbnail: "ATym2ul"
redstone_ore-thumbnail: "D8nIgQa"
deepslate_redstone_ore-thumbnail: "IKuPFmR"
netherite_block-thumbnail: "JRZvsSr"
diamond_block-thumbnail: "CR8rJf0"
emerald_block-thumbnail: "sBwrnxH"
gold_block-thumbnail: "NhxxIQ9"
iron_block-thumbnail: "IbhLcoL"

# 这是我的个人设置。
debug: false

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

评论 0

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

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源