Skip to content
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

Merged
merged 3 commits into from
May 12, 2024
Merged

Update CommandAPI to 9.4.0 #56

merged 3 commits into from
May 12, 2024

Conversation

Nobody314159
Copy link
Collaborator

No description provided.

.withArguments(new StringArgument("label").replaceSuggestions(RespawnManager.SUGGESTIONS_STRUCTURES))
.withArguments(new TextArgument("special_structure_path"))
.withArguments(labelArg)
.withOptionalArguments(pathArg)
Copy link
Collaborator

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

Copy link
Collaborator Author

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)
Copy link
Collaborator

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

Copy link
Collaborator Author

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

@Nobody314159 Nobody314159 merged commit bedb9b8 into master May 12, 2024
4 checks passed
@Nobody314159 Nobody314159 deleted the commandapi-9.4.0 branch May 12, 2024 01:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants