PitySystem
PluginApache-2.0

PitySystem

Pity System Add-on for CrazyCrates

14
Downloads
0
Followers
2 months ago
Updated
📦
3
Versions

📖About PitySystem

CrazyCrates插件写了一个保底功能

This addon introduces a pity system to the CrazyCrates plugin.

保底机制

可以自定义保底次数,保底奖品,抽到后清空计数

Customize the pity counter threshold (number of pulls) and the guaranteed reward.
The pity counter resets automatically once the player receives the guaranteed prize.

请注意配置:

Important Configuration Notes:

保底奖池就是将此的文件名,
保底奖品是序号,而不是名字

The "ExampleCrate" is defined by the configuration file's name.

Specify the guaranteed reward by its slot/index number, not its display name.
演示
可设置pity-group参数,如果不同奖池公用一个pity-group,那么它们的将共同计数

The pity-group parameter can be set. If different prize pools share the same pity-group, they will count together
计数

钥匙转换

奖池之间可以自动转化钥匙,示例: 开B箱时没有钥匙,就自动转化A箱的10把钥匙转化为B箱钥匙使用

# Key Conversion Configuration:
# auto-convert: If true, when a player interacts with a crate but lacks keys,
# it will automatically check rules and consume 'from' keys to give 1 'to' key.
key-conversion:
  auto-convert: true
  rules:
    - from: "CrateA"
      to: "CrateB"
      ratio: 10
      message: "&a[PitySystem] &f你没有 &bCrateB &f钥匙,已自动消耗 &e10 &f把 &bCrateA &f钥匙进行兑换!"

数据库支持(todo)

等我将CrazyCrates接上数据库后,再更新此插件

命令

/pityreset 玩家名字 可以重置玩家保底次数

/pitydebug 开/关测试模式

/pityreload 更改配置后的重载

/pityconvert <源抽奖箱> <目标抽奖箱> [数量]:手动进行钥匙转化

/pityreset : Resets a specific player's pity counter.

/pitydebug: Toggles debug/test mode.

/pityreload: Reloads the configuration file after changes.

/pityconvert

[quantity]: Manually convert keys

变量

你可以通过PlaceholderAPI变量查看玩家的保底信息:

%pitysystem_count_% - 玩家当前的保底计数。

%pitysystem_max_% - 该奖池设定的最大保底次数。

%pitysystem_left_% - 距离下一次保底还剩多少次(计算方式:max - count)

%pitysystem_groupcount_% - 如果使用了共享保底,获取该组的共享计数

示例: 如果你的奖池名为 ExampleCrate,则可以使用 %pitysystem_count_ExampleCrate%