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

Make /cte idempotent (non-stateful) #43

Merged
merged 2 commits into from
Mar 5, 2018
Merged

Conversation

awoo-civ
Copy link

A workaround for #30

Tested.

}
sendAndLog(p, ChatColor.GREEN, "Easy mode has been disabled.");
} else {
sendAndLog(p, ChatColor.RED, "Usage: /cte [on|off]");

Choose a reason for hiding this comment

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

Instead of doing this, just return false and it will send the usage message.

Copy link
Author

Choose a reason for hiding this comment

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

That only seems to show the usage information when the amount of arguments is incorrect. For example, no message appears when I type /cte test. Is there any way to fix that? If not, I'd rather stick with my solution.

Choose a reason for hiding this comment

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

OK that's fine then.

@ProgrammerDan ProgrammerDan merged commit 0ca9005 into DevotedMC:master Mar 5, 2018
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.

3 participants