ChestAlerts

插件

· 作者 Kaludii

当箱子、潜影盒、桶或末影箱被打开时,通过控制台和 Webhook 发送警报。

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

最新 1.0 · 1.20.1 · Paper / Purpur

一键开服(送7天)

ChestAlerts 插件

ChestAlerts 是一款简单且可定制的 Spigot 插件,当玩家打开箱子、潜影盒、 barrels(桶)或末影箱时,它会在控制台发送警报,并通过 Webhook 发送到 Discord。

ChestAlerts 运行效果

控制台警报(可在配置文件中关闭):

console-alerts

Discord 警报(Webhook 可在配置文件中设置):

webhook-alerts

功能

  • 即时警报:当玩家打开箱子、潜影盒、桶或末影箱时,立即收到警报。
  • Discord 集成:使用 Webhook 将警报直接发送到 Discord 频道。
  • 权限支持:提供用于切换警报命令和重新加载插件的权限节点。

plugin.yml

name: ChestAlerts
version: '1.0'
main: com.github.kaludii.chestalerts.ChestAlerts
api-version: '1.20'
description: Send an alert to Discord and the console when a player opens a chest.
authors: [Kaludi]
website: https://github.com/Kaludii
load: STARTUP
commands:
  ChestAlerts:
    description: Main command for the ChestAlerts plugin.
    usage: /<command>
    permission: chestalerts.use
    permission-message: '&d&lChestAlerts &2&l►You do not have permission to use this command.'
permissions:
  chestalerts.*:
    description: Gives access to all ChestAlerts commands.
    default: op
  chestalerts.use:
    description: Allows use of the ChestAlerts command.
    default: op
  chestalerts.reload:
    description: Allows use of the /ChestAlerts reload command.
    default: op
  chestalerts.toggle:
    description: Allows use of the /ChestAlerts toggle command.
    default: op

命令

  • /ChestAlerts reload:重新加载插件配置。
  • /ChestAlerts toggle:开启或关闭箱子警报。
  • /ChestAlerts help:显示帮助信息。

权限

  • chestalerts.reload:允许使用 /ChestAlerts reload 命令。
  • chestalerts.toggle:允许使用 /ChestAlerts toggle 命令。

配置

Config.yml

# Configuration file for the ChestAlerts plugin by Kaludi.
#
# 'discord-webhook-url': The URL for the Discord webhook to post to.
# 'discord-webhook-name': The name for the Discord webhook.
# 'discord-webhook-image': The URL for the image to use for the Discord webhook posts.
# 'announce-in-terminal': Whether to announce to the console when a chest is opened.
# 'bStatsEnabled': Whether to enable bStats metrics for this plugin.
#
# After making changes to this file, save and do '/ChestAlerts reload' or restart your server.
settings:
discord-webhook-url: ''
discord-webhook-name: ChestAlerts
discord-webhook-image: 'https://media.discordapp.net/attachments/705961866962403328/1135798490417610792/chest.png'
announce-in-terminal: true
bStatsEnabled: true

Messages.yml

# Messages file for the ChestAlerts plugin by Kaludi.
#
# You can use color codes using '&'. For example: '&c' is red.
# Don't forget to save and do '/ChestAlerts reload' or restart your server after making changes.
#
help_message: '&d&lChestAlerts &2&l► &bThis is the help message for ChestAlerts. Available commands are: /ChestAlerts help, /ChestAlerts reload, /ChestAlerts toggle'
no_permission_message: '&d&lChestAlerts &2&l► &cYou do not have permission to use this command.'
reload_message: '&d&lChestAlerts &2&l► &bThe ChestAlerts plugin has been reloaded.'
toggle_on_message: '&d&lChestAlerts &2&l► &bChestAlerts have been enabled.'
toggle_off_message: '&d&lChestAlerts &2&l► &bChestAlerts have been disabled.'

本插件仅在 1.19 和 1.20 版本上进行了测试,未在其他早期版本上进行测试。

支持

如需任何帮助或支持问题,请加入我们的 Discord 服务器。

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

评论 0

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

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源