Adds a new StargateTeleportEvent to combine some duplicated code

This commit is contained in:
2022-01-28 22:58:02 +01:00
parent 8a5c094ce1
commit 95293204d5
3 changed files with 22 additions and 2 deletions

View File

@ -0,0 +1,18 @@
package net.knarcraft.stargate.event;
import org.bukkit.Location;
import org.bukkit.event.Cancellable;
/**
* A generic teleportation event
*/
public interface StargateTeleportEvent extends Cancellable {
/**
* Return the location of the players exit point
*
* @return <p>Location of the exit point</p>
*/
Location getExit();
}