-
-
Notifications
You must be signed in to change notification settings - Fork 382
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
Add warnings for using %player% without using the UUID config setting. #6271
Conversation
Is this on local variables and anyway to disable it without swapping to uuid? I have global temp vars I don't need a uuid for |
Doesn't changing the config option also change it in local variables? |
Yes, this does apply to local variables too. We could disable the warning for those, but you really should be using |
Should there be a config option to disable this warning? Similar to the variable conflict warning? |
I'll agree on using players name but I also prefer being lazy |
I considered that, but I fear users would just disable the warning and get slapped in the face when we do change it. |
Fair point. It's not gonna be forever to be fair, so makes sense not to have an option to turn it off. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this error message and the linked article about migrating.
I read the discussion and all good but I wonder about offlineplayer usage in variables as well, is it also affected by the change? if so the warning should account for that as well |
Good catch, thanks! They're affected in the exact same way as Players, so I'll include them in the warning. |
Description
As a precursor to #5676, we need to add warnings to users to warn them of the incoming changes. This PR adds a warning whenever an expression with a
Player
return type is used in a VariableString, if theuse UUIDs in variable names
config option is false.It directs users to #6270 to learn more about how to address the warning.
Ideally, this prompts players to switch to UUIDs through the config, but forcing them to use
player's name
is also an acceptable outcome.Critique on the warning's content and the explanatory discussion post is welcome.
Target Minecraft Versions: any
Requirements: none
Related Issues: #5676