Skip to content

Commit

Permalink
Fix "parsed as a player" Not Working (#6317)
Browse files Browse the repository at this point in the history
  • Loading branch information
APickledWalrus authored Jan 10, 2024
1 parent de1e34e commit 271b799
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 271b799

Please sign in to comment.