ChestAlerts

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

资源图片
# ChestAlerts 插件 **ChestAlerts** 是一个简单且可定制的 Spigot 插件,用于在控制台以及通过 webhook 向 Discord 发送胸板、箱子、桶或末影箱打开的警报。 ## ChestAlerts 实际运作 **控制台警报(可在配置文件中关闭):** ![console-alerts](https://raw.githubusercontent.com/Kaludii/ChestAlerts/main/images/console-alerts.png?token=GHSAT0AAAAAAB5T33GKO7RTEWVL6WOV7LQUZGJIH7Q) **Discord 警报(Webhook 可在配置文件中配置):** ![webhook-alerts](https://raw.githubusercontent.com/Kaludii/ChestAlerts/main/images/webhook-alerts.png?token=GHSAT0AAAAAAB5T33GLTRUAZDNNHEEOPD3MZGJIIEQ) ## 特性 - **即时警报**: 当玩家打开胸板、箱子、桶或末影箱时,立即收到警报。 - **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: / 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 服务器](https://discord.gg/ckh7Cvh8)。