跳转至主要内容

折扣促销扩展

info

找不到在哪里下载JAR? 点击这里.

折扣促销扩展模块向 QuickShop-Hikari 添加了优惠码功能。

权限节点

  • quickshopaddon.discount.use (默认: 所有人)
    允许使用任何 /quickshop discount 命令的权限。
  • quickshopaddon.discount.bypass (默认: OP)
    允许绕过权限检查,强制修改、删除优惠码。
  • quickshopaddon.discount.create.server_all_shops (默认:OP)
    创建范围为 “服务器上任何人的所有商店” 的优惠码权限。
  • quickshopaddon.discount.create.player_all_shops (默认:所有人)
    创建范围为 “优惠码创建者拥有的所有的商店” 的优惠码权限。
  • quickshopaddon.discount.create.specific_shops (默认:所有人)
    创建范围为 “优惠码所指定的商店” 的优惠码权限。

创建优惠码

若要创建一个优惠码,则需要使用 discount 命令:

/quickshop discount create <code> <code-type> <rate> [最大使用次数] [门槛价格] [过期时间]

命令可能比较长,但你有一个命令助手来帮助你补全指令。

可用的代码类型

  • SERVER_ALL_SHOPS (可应用到服务器上任何人的任何商店)
  • PLAYER_ALL_SHOPS (可应用到优惠码创建者所拥有的所有商店)
  • SPECIFIC_SHOPS (生效于通过命令 /quickshop discount config <code> addshop 添加的商店)

安装优惠码

如需使用优惠码,则必须在和商店交易之前安装优惠码。

/quickshop discount install <code>

在你安装优惠码后,系统会记住你所输入的优惠码直至你退出游戏或服务器重启。

卸载优惠码

若要卸载优惠码,您需要使用命令:

/quickshop discount uninstall <code>

Show details for a installed discount code

通过使用 info 子命令, 你可以查询优惠码创建者、适用范围、剩余使用次数、过期时间、最低使用门槛和折扣率。

/quickshop disount info

删除优惠码

若要移除一个指定的优惠码,请执行命令:

/quickshop discount remove <code>

检查优惠码是否可以应用于特定商店

You need install a discount code first, then you click the shop you want to check, a promote message will show up when you can enjoy the discount in this shop.
If code not accepted by target shop, you will also receive a warning message when you click it.

应用优惠

You need install a discount code first, then purchase a shop that accept your code.
Then discount will applied to your purchase, and your remaining count will be consumed.

注意:如果上述附加条件未得到满足,优惠码将不会应用,您将不会得到折扣, 但同时剩余使用次数也不会被消耗,您将在提示信息中获得具体原因。

自动清理过期的优惠码

An expired discount code will automatically removed while server startup or in 30mins.
Before they got purged, players who use a expired code will receive a error message that says the code has been expired.

时间格式转换

过期时间接受 Zulu 时间格式和秒计 UNIX 时间戳格式:

您可以使用这个在线网站来帮助转换时间格式:
https://www.unixtimestamp.com/

Zulu 时间 (ISO 8601 Extended) 格式:

yyyy-MM-dd'T'HH:mm:ssZZ

请注意在转换过程中的时区,QuickShop-Hikari 总是使用服务器的系统时区进行计算。