Package fr.fuzeblocks.homeplugin.event
Class OnHomeTeleportEvent
java.lang.Object
org.bukkit.event.Event
fr.fuzeblocks.homeplugin.event.OnEventAction
fr.fuzeblocks.homeplugin.event.OnHomeTeleportEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
Fired when a player teleports to a home.
Destination is provided to the parent via 'to'. Origin comes from 'from'.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionOnHomeTeleportEvent(org.bukkit.entity.Player player, org.bukkit.Location to, String homeName) Instantiates a new On home teleport event.OnHomeTeleportEvent(org.bukkit.entity.Player player, org.bukkit.Location from, org.bukkit.Location to, String homeName) Instantiates a new On home teleport event. -
Method Summary
Methods inherited from class fr.fuzeblocks.homeplugin.event.OnEventAction
getFrom, getHandlerList, getHandlers, getHomeName, getLocation, getPlayer, getTo, getType, isCancelled, setCancelled, setHomeNameMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
OnHomeTeleportEvent
public OnHomeTeleportEvent(org.bukkit.entity.Player player, org.bukkit.Location to, String homeName) Instantiates a new On home teleport event.- Parameters:
player- the playerto- the tohomeName- the home name
-
OnHomeTeleportEvent
public OnHomeTeleportEvent(org.bukkit.entity.Player player, org.bukkit.Location from, org.bukkit.Location to, String homeName) Instantiates a new On home teleport event.- Parameters:
player- the playerfrom- the fromto- the tohomeName- the home name
-