Skip to content

Conversation

@benniofficialdev
Copy link
Contributor

@benniofficialdev benniofficialdev commented Jan 1, 2026

Fixes #6085

Added a vanish check for the automatic input corrector in getPlayer (fixed EssentialsX#6085). If the resolved target name (which may differ from argument[0] due to autocorrection) matches argument[0] case-insensitively, or the player is not vanished, the previous behavior is preserved. Otherwise, a fake player is created, resulting in the same “player not found” error as when the player is actually offline (with correct translation of message) -> fixed.
Simplified fix (EssentialsX#6386 (= Added a vanish check for the automatic input corrector in getPlayer (fixed EssentialsX#6085). If the resolved target name (which may differ from argument[0] due to autocorrection) matches argument[0] case-insensitively, or the player is not vanished, the previous behavior is preserved. Otherwise, a fake player is created, resulting in the same “player not found” error as when the player is actually offline (with correct translation of message) -> fixed.)) by adjusting getHidden to false -> fixed and simplified.
Changed getHidden to true for console as it should be able to shortcut even vanished accounts.
Fixed vanish bug (if vanished, then handle as offlineUser).
@benniofficialdev
Copy link
Contributor Author

Also updated Commandignore as it included the same issue

Added implementation for vanish.see and vanish.interact to allow short form usage.
Bugfix: If a player without permission uses /bal [player], their own balance is no longer shown. Instead, a permission error is sent to the player and logged in the console in the correct language -> fixed.
@benniofficialdev
Copy link
Contributor Author

Fixed a few other bugs I discovered while reading code

@benniofficialdev
Copy link
Contributor Author

I would be very happy if changes could be approved, thanks! @JRoy :-)

@JRoy JRoy changed the title Update Commandbalance.java Fix /balance behavior for vanished players Jan 3, 2026
Copy link
Member

@JRoy JRoy left a comment

Choose a reason for hiding this comment

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

thanks for the pr, i changed your fix slightly/made some related changes to ignore.

@JRoy JRoy enabled auto-merge January 3, 2026 16:34
@JRoy JRoy added this pull request to the merge queue Jan 3, 2026
Merged via the queue into EssentialsX:2.x with commit 68c304e Jan 3, 2026
1 check passed
Euphillya added a commit to Euphillya/Essentials-Folia that referenced this pull request Jan 4, 2026
EssentialsX@000e6c5 Mirror dumps on gist (EssentialsX#6193)
EssentialsX@b349517 Fix Spigot 1.21.10+ ReflServerStateProvider (EssentialsX#6377)
EssentialsX@ac66618 Fix error when running /helpop from console (EssentialsX#6385)
EssentialsX@68c304e Fix /balance behavior for vanished players  (EssentialsX#6386)
EssentialsX@9ad754b Use Discord name instead of tag for /msg sender (EssentialsX#6383)
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.

Vanished players matched by nickname/online only commands

2 participants