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

teleport-on-entry does not work if someone teleports a player into a claim #259

Open
TomLewis opened this issue Sep 28, 2023 · 5 comments
Open
Labels

Comments

@TomLewis
Copy link

TomLewis commented Sep 28, 2023

I have setup teleport-on-entry as an attempt to prevent people outside the claim requesting TP into it to a player thats inside the claim.
If they walk into the claim it does teleport them using teleport-on-entry, BUT if they are /tp in by a player its just ignored.

I also tried join-location

@aromaa
Copy link
Owner

aromaa commented Sep 30, 2023

Wouldn't denying entry work for that just fine?

Anyways, fixing this is a bit problematic due to the nature of the events happening. Basically all teleports are ignored while other teleport request is in flight and that would need to be cancelled in order for it to work but that blocks the processing of other flags. So the other route is add a delay before teleporting the player and that's not the most ideal thing..

@aromaa aromaa added the bug label Sep 30, 2023
@TomLewis
Copy link
Author

TomLewis commented Oct 2, 2023

No, I need the users able to use the region as its an event that I need to prevent them using Teleport to cheat it!

Could the teleport-on-entry not just do a check after the player has entered and see how they got in? even if they are in the region for 1 second before they are teleported or just straight up block it all together "You can not be teleported into this region" or something.

@aromaa
Copy link
Owner

aromaa commented Oct 2, 2023

No, I need the users able to use the region as its an event that I need to prevent them using Teleport to cheat it!

Right. Can't you just block the commands used to teleport in?

@TomLewis
Copy link
Author

TomLewis commented Oct 2, 2023

No, I need the users able to use the region as its an event that I need to prevent them using Teleport to cheat it!

Right. Can't you just block the commands used to teleport in?

You can block commands inside a region, but not outside! The rest of the server needs to still function outside events. So someone outside the region can still send a /tpa request to someone inside, and they can accept via clicking the request in chat (I use CMI Teleport)

@aromaa
Copy link
Owner

aromaa commented Oct 2, 2023

and they can accept via clicking the request in chat (I use CMI Teleport)

Those are commands under the hood

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

No branches or pull requests

2 participants