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

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

功能
- 即时警报:当玩家打开箱子、潜影盒、桶或末影箱时,立即收到警报。
- 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 服务器。
你是这个资源的作者?登录后可认领此资源。
相似资源
数据包事件PacketEvents
retrooper
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
前置科技
27
ExyliaLib
ExyliaServices
ExyliaPlugins 的库。
前置实用
26
ProAuthMeLogin
3623813757
通过对话框或铁砧界面帮助你的 Anthme
实用
16
Vessel
muhdfdeen
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
生物存储
13
Vivecraft Spigot Extension
fayer3
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
前置实用
12
旅行地图
mysticdrew
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。
冒险实用
12
评论 0
登录后参与评分
还没有评论,来抢沙发吧