镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Prevent sending usage info when executing alternative commands - #3904

Merged
JRoy merged 2 commits into
EssentialsX:2.xfrom
triagonal:fix/overridden-command-usage
Jan 9, 2021
Merged

JRoy merged 2 commits into
EssentialsX:2.xfrom
triagonal:fix/overridden-command-usage

Conversation

@triagonal

@triagonal triagonal commented Jan 9, 2021 •

Copy link
Copy Markdown
Member

Information

This PR fixes #3902, where Essentials will send its own command usage information during the execution of an alternative command if the alternative command returns false.

This PR also fixes a tiny bug where running /ess commands would output the name of an overriding plugin twice if the overriding plugin directly registered their command (not an alias).

Before and after:
image
image

Details

Proposed fix:
Always return true when executing alternative commands to prevent Essentials from sending its own usage, regardless of the outcome of the alternative command.

Environments tested:

  • Latest Paper Version (any OS, any Java 8+ version)

@triagonal triagonal added the bug: confirmed Confirmed bugs in EssentialsX. label Jan 9, 2021
@JRoy
JRoy merged commit eae8bc0 into EssentialsX:2.x Jan 9, 2021
@JRoy

JRoy commented Jan 9, 2021

Copy link
Copy Markdown
Member

pogchamp!

@triagonal
triagonal deleted the fix/overridden-command-usage branch January 11, 2021 06:12
@mdcfe mdcfe added this to the 2.19.0 milestone Feb 20, 2021
ressidell pushed a commit to ressidell/Essentials that referenced this pull request Apr 27, 2025
rewsdjad1 pushed a commit to rewsdjad1/EssentialsXPlus that referenced this pull request Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug: confirmed Confirmed bugs in EssentialsX.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EssentialsX sends its own command syntax message for plugin-overridden commands

3 participants