Skip to content

Conversation

Yexeed
Copy link
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
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