-
Notifications
You must be signed in to change notification settings - Fork 4
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
Update CommandAPI to 9.4.0 #56
Conversation
.withArguments(new StringArgument("label").replaceSuggestions(RespawnManager.SUGGESTIONS_STRUCTURES)) | ||
.withArguments(new TextArgument("special_structure_path")) | ||
.withArguments(labelArg) | ||
.withOptionalArguments(pathArg) |
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 this be optional? it's nullable in there, but in implementation it's checking if null or empty and forcing failure
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.
Yeah, looks like it. Not sure why it was written before to have a command that always failed... Fixing
|
||
new CommandAPICommand(command) | ||
.withPermission(perms) | ||
.withArguments(new StringArgument("label").replaceSuggestions(RespawnManager.SUGGESTIONS_STRUCTURES)) | ||
.withOptionalArguments(labelArg) |
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.
Same here, if we're checking null later, we shouldn't leave it optional
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.
This one should be optional - if it is null it lists all structures
No description provided.