-
Notifications
You must be signed in to change notification settings - Fork 7
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
Attach + EntityTag beginnings #6
base: main
Are you sure you want to change the base?
Conversation
} | ||
|
||
public static void autoExecute(ScriptEntry scriptEntry, | ||
@ArgLinear @ArgName("entities") List<EntityTag> attachingEntities, |
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.
List
isn't a supported parameter type, should use ListTag
& ListTag#filter
return null; | ||
} | ||
if (string.startsWith("e@")) { | ||
return new EntityTag(UUID.fromString(string.substring(2))); |
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.
Should check if it starts with e@
and substring before doing the UUID conversion, as just a UUID is valid as well
} | ||
return null; | ||
} | ||
|
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.
Missing matches
method
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.
Also missing getObjectAttribute
implementation
This reverts commit 4d44a6c.
this is quite funny