Search in sources :

Example 1 with PlayerTeleportToPlotEvent

use of com.plotsquared.core.events.PlayerTeleportToPlotEvent in project PlotSquared by IntellectualSites.

the class EventDispatcher method callTeleport.

public PlayerTeleportToPlotEvent callTeleport(PlotPlayer<?> player, Location from, Plot plot, TeleportCause cause) {
    PlayerTeleportToPlotEvent event = new PlayerTeleportToPlotEvent(player, from, plot, cause);
    callEvent(event);
    return event;
}
Also used : PlayerTeleportToPlotEvent(com.plotsquared.core.events.PlayerTeleportToPlotEvent)

Aggregations

PlayerTeleportToPlotEvent (com.plotsquared.core.events.PlayerTeleportToPlotEvent)1