Please, can you fix the error in the inventory comparator?
[22:32:54] [Server thread/ERROR]: #!#! Current node: null
[22:32:54] [Server thread/ERROR]: #!#! Current item: Inventory type is equal to "ANVIL" (comparator: ch.njol.skript.classes.data.DefaultComparators$14@20622848)
[22:32:54] [Server thread/ERROR]: #!#! Current node: null
[22:32:54] [Server thread/ERROR]: #!#! Current item: Inventory type is equal to "CRAFTING" (comparator: ch.njol.skript.classes.data.DefaultComparators$14@20622848)
The code I am using:
code_language.skript:
on inventory click:
if inventory type of clicked inventory is "CRAFTING":
name of cursor slot of player is "§5&l§2&lAes§6&lCoin"
cancel event
close player's inventory
message "&6[&cERRO&6] &rVocê está tentando destruir uma AesCoin!"
if inventory type of clicked inventory is "WORKBENCH":
name of cursor slot of player is "§5&l§2&lAes§6&lCoin"
cancel event
close player's inventory
message "&6[&cERRO&6] &rVocê está tentando destruir uma AesCoin!"
on inventory click:
if inventory type of clicked inventory is "ANVIL":
name of cursor slot of player is "§5&l§2&lAes§6&lCoin"
cancel event
close player's inventory
message "&6[&cERRO&6] &rVocê está tentando destruir uma AesCoin!"
on inventory click:
if inventory type of clicked inventory is "CRAFTING":
name of cursor slot of player is "§5&lCheque"
cancel event
close player's inventory
message "&6[&cERRO&6] &rVocê está tentando destruir um Cheque!"
if inventory type of clicked inventory is "WORKBENCH":
name of cursor slot of player is "§5&lCheque"
cancel event
close player's inventory
message "&6[&cERRO&6] &rVocê está tentando destruir um Cheque!"
on inventory click:
if inventory type of clicked inventory is "ANVIL":
name of cursor slot of player is "§5&lCheque"
cancel event
close player's inventory
message "&6[&cERRO&6] &rVocê está tentando destruir um Cheque!"
on inventory click:
if inventory type of clicked inventory is "CRAFTING":
name of cursor slot of player is "§5&lCheque §2&lAes§6&lGold"
cancel event
close player's inventory
message "&6[&cERRO&6] &rVocê está tentando destruir um Cheque!"
if inventory type of clicked inventory is "WORKBENCH":
name of cursor slot of player is "§5&lCheque §2&lAes§6&lGold"
cancel event
close player's inventory
message "&6[&cERRO&6] &rVocê está tentando destruir um Cheque!"
on inventory click:
if inventory type of clicked inventory is "ANVIL":
name of cursor slot of player is "§5&lCheque §2&lAes§6&lGold"
cancel event
close player's inventory
message "&6[&cERRO&6] &rVocê está tentando destruir um Cheque!"