-
-
Notifications
You must be signed in to change notification settings - Fork 373
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
Getting a uuid of a var inside code #837
Comments
✅ confirmed with 1.12.1 PaperSpigot + Skript dev29: Can use this: |
Confirming for dev31 / paper 1.12
however this |
The problem is that the Player ClassInfo parser changes the player/offlineplayer input to a String because of the configuration option where you can change players into their String uuid's. This causes every expression with a player being used in the variable to be seen as a String, and that would then cause it to not be understood. To fix set the option to true as it's intended and just use player in the variables. It only changes the VariableString when used in variables, not basic expressions.
Njol adding this addition: dcb94b4 |
Pretty much happens on every expression that uses a local variable |
Still persists |
Not sure if the priority can be escalated but I can confirm that this is really annoying. Basically any time you want to pass players into a function and get their UUID you have to break it up into multiple lines because of this exact bug. |
This has been a bug for almost three years now. It's a really annoying bug. Is anything planned to fix this? |
@Runakai1 parser bugs like this are hard to spot, hence why we didn't fix it yet. After we release the next alpha I can take a look at it again and see what's up with this for once and all. |
Alright so I've had enough of this bug, so I decided to find the cause of it. Apparently, it's literally just SkriptParser line 271. If you change I was going to PR this, but I thought it would be better to first ask if it's important to keep it failing on variables like |
This bug occurs when you try to get add a number to a var with a uuid in a function
The text was updated successfully, but these errors were encountered: