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())