Adds a new StargateTeleportEvent to combine some duplicated code
This commit is contained in:
@ -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();
|
||||
|
||||
}
|
Reference in New Issue
Block a user