-
-
Notifications
You must be signed in to change notification settings - Fork 368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Addon development: creating a type with "gui" in its name causes a weird error. #5879
Comments
Caused by it being interpreted as a plural, see
|
Ohh, yeah I see. Maybe some filtering for certain words? Or also check that the word "i" is alone and not in the end of another word. |
You're most likely not using a .lang file that defines the allowed plurals and genders. You need to tell Skript to allow Skript/src/main/resources/lang/default.lang Lines 1952 to 2033 in 7632dd8
You also set the user allowed input using the |
Any updates? |
Nope. I initally opened this issue because in my addon I was trying to call my TypeInfo "AnvilGui". I ended up just calling it "anvil". The issue came back when I was trying to update compatibility for 1.20.1, as the type info name "anvil" got taken by Skript I think(?) Or anyways was no longer available. In the end I just called it "virtualanvil". Adding a lang file didn't solve btw |
I came across a similar issue when trying to pluralize "objective" -> "objectives" in my addon, getting a similar error: I have a lang file all setup correctly, and still a no go. |
Error says |
Skript uses this method to get ClassInfo singular classinfo names when parsing type pattern elements. Frankly, this method is flawed and we should find ways to improve it OR just consider types in patterns plural when
|
Skript/Server Version
Bug Description
Hello, I am working on updating my Addon Skript-AnvilGUI.
Whenever I try to rename the type codename to "anvilgui" or "virtualanvilgui", it prints an error in the console, and refers to the type as "virtualanvilguu"
Expected Behavior
It should find the class "virtualanvilgui"
Steps to Reproduce
Add the word "anvilgui" or "gui" to any classinfo in your addon.
Errors or Screenshots
Other
No response
Agreement
The text was updated successfully, but these errors were encountered: