SkriptLang / Skript

Skript is a Spigot plugin which allows server admins to customize their server easily, but without the hassle of programming a plugin or asking/paying someone to program a plugin for them.
https://docs.skriptlang.org
GNU General Public License v3.0
1.02k stars 357 forks source link

Add check for pretty quotes #6810

Open ShaneBeee opened 1 week ago

ShaneBeee commented 1 week ago

Suggestion

I would like to see Skript add a check for pretty quotes. EX:

- player’s tool
+ player's tool

or

- send “I'm invalid/pretty quotes”
+ send "I'm valid quotes"

Why?

Skript currently just gives an error saying invalid expression/condition/effect/etc. Doesn't help understand the true issue.

This was from a help channel

[11:08:49 INFO]: Line 44: (test.sk)
[11:08:49 INFO]:     Can't understand this condition: '(nbt of player’s tool) has tag "tag;Claimblock"'
[11:08:49 INFO]:     Line: if (nbt of player’s tool) has tag "tag;Claimblock":
[11:08:49 INFO]:  
[11:08:49 INFO]: [Skript] Encountered 1 error while reloading test.sk! (230ms)

This is all valid, except for the pretty quote.

Other

No response

Agreement

erenkarakal commented 1 week ago

add a check as in warn the user or treat it like normal quotes?

ShaneBeee commented 1 week ago

as in a proper warning