Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix incorrect behaviours in /back #4264

Merged
merged 3 commits into from
Jun 23, 2021

Conversation

triagonal
Copy link
Member

Information

This PR re-adds the essentials.back.onteleport permission check for setting the user's last location during teleports, which was accidentally left out during the async teleport refactor. Without the check, it's not possible to restrict the use of /back to only on death.

Additionally, this PR prevents an NPE when accessing a player's lastLocation before it has been set.

Reported by DarkChroma#3333 on the MOSS support server.

Details

Environments tested:

OS: Windows 10 20H2
Java version: openjdk version "11.0.10"

  • Most recent Paper version (1.16.5-R0.1-SNAPSHOT git-Paper-778 (MC: 1.16.5))

@JRoy JRoy merged commit 9bd35a2 into EssentialsX:2.x Jun 23, 2021
@triagonal triagonal deleted the fix/last-location-permissions branch June 23, 2021 12:51
@triagonal triagonal added module: main Issues or PRs for the main Essentials module type: bugfix PRs that fix bugs in EssentialsX. labels Jun 23, 2021
@pop4959 pop4959 added this to the 2.19.0 milestone Jul 6, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
module: main Issues or PRs for the main Essentials module type: bugfix PRs that fix bugs in EssentialsX.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants