Skip to content

Conversation

@xFier
Copy link

@xFier xFier commented Oct 9, 2019

PlayerTeleportEvent is fired before the player is actually teleported. As a result of this the location of the player as far as the event is concerned is where they are before they teleport. So when the snitch entry is handled it will take that location & not where they move to. By using the getTo() method & a player location override we can trigger snitches for when the player teleports in or out of a snitch field.

PlayerTeleportEvent is fired before the player is actually teleported. As a result of this the location of the player as far as the event is concerned is where they are before they teleport. So when the snitch entry is handled it will take that location & not where they move to. By using the getTo() method & a player location override we can trigger snitches for when the player teleports in or out of a snitch field.
@DevotedServant
Copy link

Can one of the admins verify this patch? @ProgrammerDan @Maxopoly

"ok to test" will build any commits made to this PR
"test this please" will build this PR once
"retest this please" will make another single build for this PR
"add to whitelist" will whitelist the creator of this PR and make jenkins automatically build any PRs made by him

@xFier xFier changed the title Fixed pearling snitches not firing when pearled into Fixed snitches not firing when pearled into Oct 9, 2019
@Maxopoly
Copy link

Maxopoly commented Oct 9, 2019

Seems fine. Probably a better time investment to help with the new version though.

@xFier xFier closed this Oct 9, 2019
@xFier xFier reopened this Oct 9, 2019
@xFier
Copy link
Author

xFier commented Oct 10, 2019

I'm still working on the new version when I can, but I saw this was a quick fix for 1.12 currently

@ProgrammerDan
Copy link

ProgrammerDan commented Oct 10, 2019 via email

@Diet-Cola
Copy link

Does this need testing? @ProgrammerDan @Maxopoly

@Maxopoly
Copy link

Should be straight forward enough to not do so

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.

5 participants