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

Add UserTeleportSpawnEvent #4328

Merged
merged 10 commits into from
Jul 7, 2021
Merged

Add UserTeleportSpawnEvent #4328

merged 10 commits into from
Jul 7, 2021

Conversation

Ansandr
Copy link
Contributor

@Ansandr Ansandr commented Jul 6, 2021

Details

I propose to add an event for listening to the player's teleportation to the spawn, and include it in the new api v2

I've recently had a case myself where having this event would have been a lot easier than having to listen to the PlayerCommandPreprocessEvent.

Proposed feature:
Event is called when the user teleports to the spawn using command

Environments tested:

OS: Windows 10 x64

Java version: 16 x64

  • Most recent Paper version (1.XX.Y, git-Paper-BUILD)
  • CraftBukkit/Spigot/Paper 1.12.2
  • CraftBukkit 1.8.8

Copy link
Member

@JRoy JRoy left a comment

Choose a reason for hiding this comment

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

Few small grammer things, also would be nice for there to be a getController method to get the person who caused the teleport (so if someone did /spawn PlayerName), or null if there is none.

Ansandr and others added 5 commits July 7, 2021 14:07
Co-authored-by: Josh Roy <10731363+JRoy@users.noreply.github.com>
Co-authored-by: Josh Roy <10731363+JRoy@users.noreply.github.com>
Co-authored-by: Josh Roy <10731363+JRoy@users.noreply.github.com>
Co-authored-by: Josh Roy <10731363+JRoy@users.noreply.github.com>
@Ansandr
Copy link
Contributor Author

Ansandr commented Jul 7, 2021

Few small grammer things, also would be nice for there to be a getController method to get the person who caused the teleport (so if someone did /spawn PlayerName), or null if there is none.

Done

@JRoy JRoy merged commit 3787b80 into EssentialsX:2.x Jul 7, 2021
@mdcfe mdcfe added this to the 2.19.0 milestone Jul 8, 2021
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.

3 participants