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

close offline player loophole #83

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

SwissalpS
Copy link
Contributor

It seems like this code is a leftover from when JDs didn't have digilines yet and the player was the one interacting with the formspec. Now the player is the owner of the JD.

Also back then can_travel() was inspecting XP instead of privs. XP is stored in player meta, so isn't checkable when player is offline.

With this change, players can't jump over warzone or other places they normally couldn't go to (except landing-priv area). They used an alt to place the JD then while the alt wasn't online, the checks were skipped and by trapping the
online player in a chair(/bike/minecart/...) the
teleport_back globalstep couldn't force them
back to /spawn.

It seems like this code is a leftover from when jds didn't
have digilines yet and the player was the one interacting
with the formspec. Now the player is the owner of the jd.

Also back then can_travel() was inspecting XP instead of
privs. XP is stored in player meta, so isn't checkable
when player is offline.

With this change, players can't jump over warzone or other
places they normally couldn't go to (except landing-priv area). They
used an alt to place the JD then while the alt wasn't online, the checks
were skipped and by trapping the
online player in a chair(/bike/minecart/...) the
teleport_back globalstep couldn't force them
back to /spawn.
@SwissalpS
Copy link
Contributor Author

have not tested and am not particularly motivated to advance this.

Copy link
Contributor

@BuckarooBanzay BuckarooBanzay left a comment

Choose a reason for hiding this comment

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

LGTM (i think 🤔)

@BuckarooBanzay
Copy link
Contributor

i'll check your other PR's in a few days btw 😏 (ping me up if there is something urgent)

@SwissalpS
Copy link
Contributor Author

Nothing urgent. If you are going to prioritize, these JD related ones:
https://github.com/pulls?q=is%3Aopen+is%3Apr+org%3Amt-mods+draft%3Afalse+archived%3Afalse+jumpdrive

(minus the unexplored area one)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants