-
-
Notifications
You must be signed in to change notification settings - Fork 992
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
Conversation
There was a problem hiding this 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.
EssentialsSpawn/src/main/java/net/essentialsx/api/v2/events/UserTeleportSpawnEvent.java
Outdated
Show resolved
Hide resolved
EssentialsSpawn/src/main/java/net/essentialsx/api/v2/events/UserTeleportSpawnEvent.java
Outdated
Show resolved
Hide resolved
EssentialsSpawn/src/main/java/net/essentialsx/api/v2/events/UserTeleportSpawnEvent.java
Outdated
Show resolved
Hide resolved
EssentialsSpawn/src/main/java/net/essentialsx/api/v2/events/UserTeleportSpawnEvent.java
Outdated
Show resolved
Hide resolved
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>
Done |
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