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.08k stars 370 forks source link

Enchantment Type and Enchantment are swapped #5373

Open colton-boi opened 1 year ago

colton-boi commented 1 year ago

Skript/Server Version

[14:50:36 INFO]: [Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
[14:50:36 INFO]: [Skript] Skript's documentation can be found here: https://docs.skriptlang.org/
[14:50:36 INFO]: [Skript] Skript's tutorials can be found here: https://docs.skriptlang.org/tutorials
[14:50:36 INFO]: [Skript] Server Version: git-Paper-380 (MC: 1.19.3)
[14:50:36 INFO]: [Skript] Skript Version: 2.7.0-dev-nightly-df686ec9 (skriptlang-nightly)
[14:50:36 INFO]: [Skript] Installed Skript Addons: None
[14:50:36 INFO]: [Skript] Installed dependencies: None

This is on my test server so it's on nightly, but also happens on 2.6.4 and all other versions from what I know.

Bug Description

image Enchantment should have the ability to have a level after it (Ex: Efficiency 1) Enchantment TYPE should be just the name, with no value, (Ex: Efficiency)

It would also be nice if both had the syntax of Enchant[ment] with the "ment" being optional

Expected Behavior

Swapped syntaxes

Steps to Reproduce

N/A

Errors or Screenshots

No response

Other

No response

Agreement

Fusezion commented 1 year ago

This I'm not fully sure about since if you have checked docs you'd see that it states enchantment type is an enchantment with a level while enchantment is referring to all possible enchantments

image image

colton-boi commented 1 year ago

While I know that's what it says, it sounds backwards. a enchantment TYPE shouldn't have a value, the value would make more sense for just enchantment