You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[21:52:56 INFO]: [Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases[21:52:56 INFO]: [Skript] Skript's documentation can be found here: https://docs.skriptlang.org/[21:52:56 INFO]: [Skript] Skript's tutorials can be found here: https://docs.skriptlang.org/tutorials[21:52:56 INFO]: [Skript] Server Version: 1.21.1-132-b48403b (MC: 1.21.1)
[21:52:56 INFO]: [Skript] Skript Version: 2.9.5 (skriptlang-github)
[21:52:56 INFO]: [Skript] Installed Skript Addons:
[21:52:56 INFO]: [Skript] - SkBee v3.6.4 (https://github.com/SkriptHub/SkBee)
[21:52:56 INFO]: [Skript] Installed dependencies:
[21:52:56 INFO]: [Skript] - Vault v1.7.3-b131
[21:52:56 INFO]: [Skript] - WorldGuard v7.0.12+829a4a4
Bug Description
So when i was skripting with enchantment books i came upon a bug. Skript can not properly detect stored enchantments as a string. When debugging the stored enchantments the value returns with "sharpness 1" etc. But when i try to see if it contains "sharpness" it returns false. UNLESS i Specifically check for "sharpness 1" then suddenly it works. Even tho it contains "sharpness". I Did try to convert it into a string but it came back with the exact same results.
Expected Behavior
It was expected to be detected when i wrote (if variable contains "sharpness") to be detected. Instead i had to check specifically for each letter such as "sharpness 1"
Steps to Reproduce
command /checking:
trigger:
set {_enchant::*} to stored enchants of player's tool
broadcast "%{_enchant::*}%"
if {_enchant::*} contains sharpness:
broadcast "&c&lDebug code 1: &c&lSharpness detected"
if {_enchant::*} contains sharpness 1:
broadcast "&c&lDebug code 2: &c&lSharpness 1 specifically detected"
if {_enchant::*} contains "sharpness":
broadcast "&c&lDebug code 3: &c&lSharpness String detected"
if {_enchant::*} contains "sharpness 1":
broadcast "&c&lDebug code 4: &c&lSharpness String 2 specifically detected"
Errors or Screenshots
Other
Please notice that the "sharpness 1" is from the 4th line, Indicating that "sharpness" does in fact exist. And it does trigger properly only when directly asked for sharpness 1. Wish means "contains" does not work. If this is not a bug then i hope to request this as a feature
Agreement
I have read the guidelines above and affirm I am following them with this report.
The text was updated successfully, but these errors were encountered:
Skript/Server Version
Bug Description
So when i was skripting with enchantment books i came upon a bug. Skript can not properly detect stored enchantments as a string. When debugging the stored enchantments the value returns with "sharpness 1" etc. But when i try to see if it contains "sharpness" it returns false. UNLESS i Specifically check for "sharpness 1" then suddenly it works. Even tho it contains "sharpness". I Did try to convert it into a string but it came back with the exact same results.
Expected Behavior
It was expected to be detected when i wrote (if variable contains "sharpness") to be detected. Instead i had to check specifically for each letter such as "sharpness 1"
Steps to Reproduce
Errors or Screenshots
Other
Please notice that the "sharpness 1" is from the 4th line, Indicating that "sharpness" does in fact exist. And it does trigger properly only when directly asked for sharpness 1. Wish means "contains" does not work. If this is not a bug then i hope to request this as a feature
Agreement
The text was updated successfully, but these errors were encountered: