ChestShop Notifier

插件

· 作者 _ForgeUser12706264

追踪 ChestShop 的销售记录并获取通知

0 本站下载 0 关注 更新于 5 年前
一键开服(送7天)

注意:此插件的最新版本兼容所有支持 UUID 的 CraftBukkit 或 Spigot 版本!

CSN (ChestShop Notifier) 是一款将 ChestShop 交易记录到 SQLite 或 MySQL 数据库的插件。当店主登录服务器时,系统会提供查看其离线期间销售记录的选项。

安装说明

命令

  • /csn help → 显示可用命令
  • /csn history [<page>] → 显示数据库中未读的销售历史
  • /csn history [<username> [<page>]] → 显示其他玩家的销售历史
  • /csn clear [<username>] → 将你的用户的所有销售历史记录标记为已读
  • /csn cleandatabase → 删除数据库条目。参数:
    --older-than, -o days → 删除早于指定天数的条目
    --user, -u username/uuid → 仅删除特定用户的条目
    --read-only, -r → 仅删除已读条目(默认行为)
    --all, -a → 删除所有条目
  • /csn upload → 强制插件将所有数据上传至数据库(在 v1.1 及更高版本中,仅在出现数据库连接问题时使用!)
  • /csn reload → 重新加载配置并使用新配置连接数据库
  • /csn convert → 将数据库表 csn 转换为 UUID 格式。(表 csn 将被转换为 csnUUID,且用户名表重命名为 csnOLD)

权限

  • csn.user → 允许用户在登录时接收通知,并访问 /csn history。
  • csn.admin → 超级权限节点。可访问所有命令。(特别是 upload、reload 和 convert)

有关所有权限,请查看 plugin.yml

配置


# Chest Shop Notifier<br />

logging: admin-shop: true

notifications: notify-on-user-join: true delay-seconds: 5

history: max-rows: 10 query-limit: 10000

debugging: verbose: true

database:

Possible types: SQLite and MySQL

type: sqlite dbname: 'database'

MySQL specific settings

host: 'localhost' port: 3306 username: 'dbadmin' password: '123456' ssl: false

clean-on-startup: enabled: false parameters: "--older-than 30 --all"

messages: sales: "&amp;c ** You made &amp;f{sales} sales&amp;c since you last checked." history-cmd: "&amp;c ** To see them, type &amp;f/csn history&amp;c." history-caption: "&amp;dChestShop Notifier // &amp;7Latest Commissions" history-empty: "&amp;cNothing to show." history-bought: "&amp;a+ &amp;9{player} &amp;7bought &amp;a{count}x&amp;9{item} &amp;f{timeago}&amp;7 ago &amp;a(+{money})" history-bought-read: "&amp;a+ &amp;7{player} &amp;8bought &amp;a{count}x&amp;7{item} &amp;7{timeago}&amp;8 ago &amp;a(+{money})" history-sold: "&amp;c- &amp;9{player} &amp;7sold you &amp;c{count}x&amp;9{item} &amp;f{timeago}&amp;7 ago &amp;c(-{money})" history-sold-read: "&amp;c- &amp;7{player} &amp;8sold you &amp;c{count}x&amp;7{item} &amp;7{timeago}&amp;8 ago &amp;c(-{money})" history-footer-page: "&amp;c- Page &amp;f{current}&amp;c/&amp;f{pages}&amp;6 - &amp;7/csn history &lt;page&gt;" history-footer-clear: "&amp;f- &amp;cTo remove all old entries, type /csn clear" history-clear: "&amp;cHistory cleared! New sales will continue to be recorded." history-marked-read: "&amp;cUnread entries marked read!" history-others-not-allowed: "&amp;cYou are not allowed to check the history of {username}"

new translations

reload-cmd: "&amp;dChestShop Notifier // &amp;7Reloading, please wait..." reload-success: "&amp;aReloaded!" reload-database-success: "&amp;aDatabase connected!" reload-database-fail: "&amp;cDatabase failed to connect!" user-not-found: "&amp;cThe user '{player}' was not found." page-not-found: "&amp;e{page} &amp;cis not a valid page number input for /csn history &lt;page&gt;!" page-not-found-other: "&amp;e{page} &amp;cis not a valid page number input for /csn history &lt;user&gt; &lt;page&gt;!" database-error: "&amp;cInvalid database connection. Please edit config and /csn reload." database-error-oncommand: "&amp;cDatabase error while executing this command!" database-cleaned: "&amp;cCleaned database from {amount} entries!" database-uploaded: "&amp;cBatch executed!" database-convert: "&amp;cAttempting to convert database..." database-convert-fail: "&amp;cError while trying to convert! Maybe you don't have a 'csn' table?" database-converted: "&amp;cDatabase converted!" unrecognized-command: "&amp;cCommand not recognized. Type /csn help for help." missing-arguments: "&amp;cMissing parameter arguments: {usage}"

invalid-number: "&c{typo} 不是 {usage} 的有效数字输入!" invalid-username: "&c{typo} 不是 {usage} 的有效用户名/UUID 输入!" missing-permission: "&c你缺少权限 {permission}!" help: header: "&dChestShop Notifier // &7命令" help: "&7 /csn &dhelp &f- 插件用法与命令" history: "&7 /csn &dhistory [&lt;页码&gt;]&f- 查看销售记录" clear: "&7 /csn &dclear &f- 清除已读的销售记录" history-others: "&7 /csn &dhistory &lt;用户名&gt; [&lt;页码&gt;]&f- 查看其他账户的销售记录" clear-others: "&7 /csn &dclear &lt;用户名&gt;&f- 清除其他账户已读的销售记录" cleandatabase: "&7 /csn &ccleandatabase &f- 删除数据库条目。参数:" cleandatabase-older-than: "&c --older-than, -o &lt;天数&gt; &f- 删除早于 &lt;天数&gt; 的条目" cleandatabase-user: "&c --user, -user &lt;用户名/UUID&gt; &f- 仅删除单个用户的条目" cleandatabase-read-only: "&c --read-only, -r &f- 仅删除已读条目,默认行为" cleandatabase-all: "&c --all, -a &f- 删除所有条目" upload: "&7 /csn &cupload &f- 强制更新数据库" convert: "&7 /csn &cconvert &f- 将数据库转换为 UUID 格式" reload: "&7 /csn &creload &f- 重新加载配置"


 

依赖要求

  • 安装并运行 ChestShop。
  • 可选:如果你希望将信息存储在真正的数据库中或在服务器间共享,则需要 MySQL 服务器。

计划中的功能

  • 支持 UUID 已在 v1.1.2 中完成
  • 查询离线玩家的销售记录 已在 v1.1.2 中完成
  • 忽略 ChestShop 的管理员商店 已在 v1.1.2 中完成
  • 历史记录分页 已在 v1.2 中完成
  • SQLite 支持 已在 v1.3.3 中完成
  • 自动更新器与版本检查器
  • 翻译系统 (部分功能在 v1.1.2 中完成,你可以在配置文件中自定义消息)

如需更多功能和提交建议,请使用 GitHub Issues 页面!

源代码与开发构建版

  • 你可以在以下地址在线查看源代码:
     

  • 开发构建版可在 Minebench.de Jenkins 构建服务器上获取:


捐赠

欢迎通过 在 GitHub 仓库上创建 Issue 来评论你的想法、报告错误或提出请求。
如果你确实想要进行金钱上的支持,请 点击此处。

演示

登录通知

历史命令

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

评论 0

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

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源