镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Add UserTeleportSpawnEvent - #4328

Merged
JRoy merged 10 commits into
EssentialsX:2.xfrom
Ansandr:2.x
Jul 7, 2021
Merged

JRoy merged 10 commits into
EssentialsX:2.xfrom
Ansandr:2.x

Conversation

@Ansandr

@Ansandr Ansandr commented Jul 6, 2021

Copy link
Copy Markdown
Contributor

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

@JRoy JRoy left a comment

Copy link
Copy Markdown
Member

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

Ansandr commented Jul 7, 2021

Copy link
Copy Markdown
Contributor Author

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
ressidell pushed a commit to ressidell/Essentials that referenced this pull request Apr 27, 2025
Co-authored-by: Josh Roy <10731363+JRoy@users.noreply.github.com>
rewsdjad1 pushed a commit to rewsdjad1/EssentialsXPlus that referenced this pull request Aug 13, 2026
Co-authored-by: Josh Roy <10731363+JRoy@users.noreply.github.com>
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