Skip to content
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

Remove Player name/UUID in variables warning. #6505

Merged
merged 2 commits into from
Mar 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 0 additions & 10 deletions src/main/java/ch/njol/skript/lang/VariableString.java
Original file line number Diff line number Diff line change
Expand Up @@ -224,16 +224,6 @@ public static VariableString newInstance(String original, StringMode mode) {
log.printErrors("Can't understand this expression: " + original.substring(exprStart + 1, exprEnd));
return null;
} else {
if (
mode == StringMode.VARIABLE_NAME &&
!SkriptConfig.usePlayerUUIDsInVariableNames.value() &&
OfflinePlayer.class.isAssignableFrom(expr.getReturnType())
) {
Skript.warning(
"In the future, players in variable names will use the player's UUID instead of their name. " +
"For information on how to make sure your scripts won't be impacted by this change, see https://github.com/SkriptLang/Skript/discussions/6270."
);
}
strings.add(expr);
}
log.printLog();
Expand Down