Teleportation delay API
RoboMWM opened this issue ยท 3 comments
Unless I'm blind, is there a way to determine when a player is waiting to be teleported in EssentialsX? Basically I'd like to play a particle effect while the player is warming up to teleport. This is currently how I'm (dumbly) doing it: https://github.com/MLG-Fortress/MountainDewritoes/blob/master/src/main/java/me/robomwm/MountainDewritoes/TeleportingEffects.java
Short of re-implementing teleportation commands, I'm not aware of any other way to do this while using EssentialsX' teleportation. Is it possible an API/event can be added for this?
There is Essentials.getUser().getTeleport(), maybe you could use that to check if the teleport is still active at least? Unsure if it works as expected.