差别
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录 前一修订版 后一修订版 | 前一修订版 | ||
插件手册:bossshop:conditions [2022/02/06 14:43] – [可用的条件类型] duangfafa | 插件手册:bossshop:conditions [2022/02/07 16:44] (当前版本) – [例子] duangfafa | ||
---|---|---|---|
行 33: | 行 33: | ||
- amount: | - amount: | ||
InventoryLocation: | InventoryLocation: | ||
+ | ExtraPermission: | ||
5: # | 5: # | ||
RewardType: nothing | RewardType: nothing | ||
行 185: | 行 186: | ||
==== 占位符条件 ==== | ==== 占位符条件 ==== | ||
条件类型“placeholdernumber”和“placeholdermatch”允许检查任何BossShopPro或PlaceholderAPI支持的占位符并检查任何支持的插件的值。 | 条件类型“placeholdernumber”和“placeholdermatch”允许检查任何BossShopPro或PlaceholderAPI支持的占位符并检查任何支持的插件的值。 | ||
+ | |||
+ | __占位符编号:__ | ||
+ | <code yaml [enable_line_numbers=" | ||
+ | Condition: | ||
+ | - type: | ||
+ | - ' | ||
+ | </ | ||
+ | |||
+ | __占位符匹配:__ | ||
+ | <code yaml [enable_line_numbers=" | ||
+ | Condition: | ||
+ | - type: | ||
+ | - ' | ||
+ | </ | ||
+ | 占位符中的冒号 (":" | ||
+ | |||
+ | **模支持** | ||
+ | |||
+ | 数值条件类型支持模。这是一个高级示例: | ||
+ | <code yaml [enable_line_numbers=" | ||
+ | Moving_1: | ||
+ | MenuItem: | ||
+ | - name:& | ||
+ | - type: | ||
+ | RewardType: NOTHING | ||
+ | PriceType: NOTHING | ||
+ | Message: '' | ||
+ | ExtraPermission: | ||
+ | InventoryLocation: | ||
+ | Condition: | ||
+ | - type: | ||
+ | - ' | ||
+ | Moving_2: | ||
+ | MenuItem: | ||
+ | - name:& | ||
+ | - type: | ||
+ | RewardType: NOTHING | ||
+ | PriceType: NOTHING | ||
+ | Message: '' | ||
+ | ExtraPermission: | ||
+ | InventoryLocation: | ||
+ | Condition: | ||
+ | - type: | ||
+ | - ' | ||
+ | Moving_3: | ||
+ | MenuItem: | ||
+ | - name:& | ||
+ | - type: | ||
+ | RewardType: NOTHING | ||
+ | PriceType: NOTHING | ||
+ | Message: '' | ||
+ | ExtraPermission: | ||
+ | InventoryLocation: | ||
+ | Condition: | ||
+ | - type: | ||
+ | - ' | ||
+ | Moving_4: | ||
+ | MenuItem: | ||
+ | - name:& | ||
+ | - type: | ||
+ | RewardType: NOTHING | ||
+ | PriceType: NOTHING | ||
+ | Message: '' | ||
+ | ExtraPermission: | ||
+ | InventoryLocation: | ||
+ | Condition: | ||
+ | - type: | ||
+ | - ' | ||
+ | Moving_5: | ||
+ | MenuItem: | ||
+ | - name:& | ||
+ | - type: | ||
+ | RewardType: NOTHING | ||
+ | PriceType: NOTHING | ||
+ | Message: '' | ||
+ | ExtraPermission: | ||
+ | InventoryLocation: | ||
+ | Condition: | ||
+ | - type: | ||
+ | - ' | ||
+ | Moving_6: | ||
+ | MenuItem: | ||
+ | - name:& | ||
+ | - type: | ||
+ | RewardType: NOTHING | ||
+ | PriceType: NOTHING | ||
+ | Message: '' | ||
+ | ExtraPermission: | ||
+ | InventoryLocation: | ||
+ | Condition: | ||
+ | - type: | ||
+ | - ' | ||
+ | Moving_7: | ||
+ | MenuItem: | ||
+ | - name:& | ||
+ | - type: | ||
+ | RewardType: NOTHING | ||
+ | PriceType: NOTHING | ||
+ | Message: '' | ||
+ | ExtraPermission: | ||
+ | InventoryLocation: | ||
+ | Condition: | ||
+ | - type: | ||
+ | - ' | ||
+ | Moving_8: | ||
+ | MenuItem: | ||
+ | - name:& | ||
+ | - type: | ||
+ | RewardType: NOTHING | ||
+ | PriceType: NOTHING | ||
+ | Message: '' | ||
+ | ExtraPermission: | ||
+ | InventoryLocation: | ||
+ | Condition: | ||
+ | - type: | ||
+ | - ' | ||
+ | Moving_9: | ||
+ | MenuItem: | ||
+ | - name:& | ||
+ | - type: | ||
+ | RewardType: NOTHING | ||
+ | PriceType: NOTHING | ||
+ | Message: '' | ||
+ | ExtraPermission: | ||
+ | InventoryLocation: | ||
+ | Condition: | ||
+ | - type: | ||
+ | - ' | ||
+ | </ | ||
+ | 这将生成一个动画项目,该项目将从插槽 1 移动到插槽 9,然后再次从插槽 1 开始。 | ||
+ | |||
+ | 将 "# | ||
+ | |||
+ | 例如,如果您使用条件类型“realsecond”并使用模“10”,则条件检查器收到的所有值都在 0 和 9 之间,因为“< | ||
+ | |||