Skip to content

Conversation

@benniofficialdev
Copy link

Added a vanish check for the automatic input corrector in getPlayer (fixed #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.

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
Author

Also updated Commandignore as it included the same issue

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

1 participant