Issue with item type comparison
CerialPvP opened this issue ยท 3 comments
Skript/Server Version
[17:49:24 INFO]: [Skript] Server Version: git-Purpur-2134 (MC: 1.20.4)
[17:49:24 INFO]: [Skript] Skript Version: 2.8.2 (skriptlang-github)
[17:49:24 INFO]: [Skript] Installed Skript Addons:
[17:49:24 INFO]: [Skript] - skript-placeholders v1.6-dev-nightly-b730ffa (https://github.com/APickledWalrus/skript-placeholders)
[17:49:24 INFO]: [Skript] - MorkazSk v1.3
[17:49:24 INFO]: [Skript] - skript-reflect v2.4 (https://github.com/SkriptLang/skript-reflect)
[17:49:24 INFO]: [Skript] - Hippo v1.1.1-PRERELEASE-5
[17:49:24 INFO]: [Skript] - SkBee v3.2.0 (https://github.com/ShaneBeee/SkBee)
[17:49:24 INFO]: [Skript] - Skcrew v3.4 (https://github.com/crewpvp/skcrew)
[17:49:24 INFO]: [Skript] - Skript-Packet v2.1.2 (www.github.com/Anarchick/skript-packet)
[17:49:24 INFO]: [Skript] Installed dependencies:
[17:49:24 INFO]: [Skript] - Vault v1.7.3-b131
[17:49:24 INFO]: [Skript] - WorldGuard v7.0.10-SNAPSHOT+2260-c7319f1
Bug Description
When you try to compare an item type to another type, the condition doesn't pass.
For example: when I hold a bow and I do this effect command:
!send "e" if type of tool is bow
it doesn't send "e". Comparing "a bow" also doesn't work. This also doesn't work for any item.
Expected Behavior
The expected behavior is for the condition to work, just like it did before 2.8.
Currently, I'm comparing items using contains
, but that won't be a long term solution.
Steps to Reproduce
- Get a server with Skript 2.8 running, with effect commands enabled
- Try to run the effect command in the Bug Description section, and see it doesn't work.
Errors or Screenshots
No response
Other
No response
Agreement
- I have read the guidelines above and affirm I am following them with this report.
update SkBee, there is a comparison issue in that version of SkBee you're using.