Skip to content

/effect and /xp now extend VanillaCommand too! Like the other 42 commands....#2197

Open
Yexeed wants to merge 2 commits intoCloudburstMC:masterfrom
Yexeed:fix-vanilla-commands
Open

/effect and /xp now extend VanillaCommand too! Like the other 42 commands....#2197
Yexeed wants to merge 2 commits intoCloudburstMC:masterfrom
Yexeed:fix-vanilla-commands

Conversation

@Yexeed
Copy link
Copy Markdown
Contributor

@Yexeed Yexeed commented Sep 1, 2024

This PR changes /effect and /xp to extend VanillaCommand, instead of basic Command. It now is easier to distinguish Nukkit's commands from the plugin ones....


public boolean allowChangesFrom(CommandMap commandMap) {
return commandMap != null && !commandMap.equals(this.commandMap);
return this.commandMap == null || this.commandMap.equals(commandMap);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated change

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