From 271b79910cdd9d1a9bdb0211081151159b9b49bd Mon Sep 17 00:00:00 2001 From: Patrick Miller Date: Wed, 10 Jan 2024 17:01:10 -0500 Subject: [PATCH] Fix "parsed as a player" Not Working (#6317) --- src/main/java/ch/njol/skript/classes/data/BukkitClasses.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/ch/njol/skript/classes/data/BukkitClasses.java b/src/main/java/ch/njol/skript/classes/data/BukkitClasses.java index 1f65e0a7aaf..25000a2390d 100644 --- a/src/main/java/ch/njol/skript/classes/data/BukkitClasses.java +++ b/src/main/java/ch/njol/skript/classes/data/BukkitClasses.java @@ -681,7 +681,7 @@ public String toVariableNameString(final Inventory i) { @Override @Nullable public Player parse(String string, ParseContext context) { - if (context == ParseContext.COMMAND) { + if (context == ParseContext.COMMAND || context == ParseContext.PARSE) { if (string.isEmpty()) return null; if (UUID_PATTERN.matcher(string).matches())