跳转至主要内容

物品匹配器

ItemMatcher是QuickShop-Hikari用来比较项目的工具,它是整个系统中最重要的东西。

caution

如果此功能配置错误,将导致插件停止工作,甚至可用于物品复制、物品克隆、刷钱甚至更糟的事情。
TL;DR:除非您知道自己在做什么,否则保持默认设定。

匹配器

默认情况下,QuickShop-Hikari支持两个匹配器:

  • Bukkit Item Matcher (default)
  • QuickShop Item Matcher

您可以通过调整设置更改匹配器:

matcher:
#Matcher type
#0= QuickShop item matcher with configurable options below.
#1= Bukkit item matcher, can be more accurate.
work-type: 1

By default, QuickShop-Hikari will use Bukkit's matcher to provide the best cross-compatibility.
But still, you can toggle to QuickShop Item Matcher if you need to customize the comparing or running QuickShop on the server jar which have bug affect the Bukkit comparing system.

Customize the metadata compareing

Customize only works under QuickShop Item Matcher.

info

Using the QuickShop Item Matcher may have a slight performance impact on the server. Using the Bukkit API to compare item by item results in more serialization/deserialization work.

Keep using Bukkit Item Matcher if not necessary.

You can specific to enable or disable the some checks by tweak the configuration.

matcher:
#For Item (Only works under QuickShop ItemMatcher)
item:
#Should the Plugin check the item damage?
damage: true
#Should the Plugin check the item repair cost?
repaircost: false
#Should the Plugin check the item display name?
displayname: true
#Should the Plugin check the item lores?
lores: true
#Should the Plugin check the item enchs?
enchs: true
#Should the Plugin check the item potions?
potions: true
#Should the Plugin check the item attributes?
attributes: true
#Should the Plugin check the item itemflags?
itemflags: true
#Should the Plugin check the item custommodeldata?
custommodeldata: true
#Should the Plugin check the item bookmetas?
books: true
#Should the Plugin check the banner meta?
banner: true
#Should the Plugin check the skull meta?
skull: true
#Should the Plugin check the firework meta?
firework: true
#Should the Plugin check the map meta?
map: true
#Should the Plugin check the leather armor meta?
leatherArmor: true
#Should the Plugin check the fishBucket meta?
fishBucket: true
#Should the Plugin check the suspiciousStew meta?
suspiciousStew: true
#Should the Plugin check the shulkerBox contents?
shulkerBox: true
#Should the Plugin check the bundle contents?
bundle: true