use of com.massivecraft.massivecore.teleport.DestinationSimple in project MassiveCore by MassiveCraft.
the class EngineMassiveCoreDestination method destinationPs.
// -------------------------------------------- //
// DESTINATION ARG
// -------------------------------------------- //
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
public void destinationPs(EventMassiveCoreDestination event) {
try {
PS ps = TypePS.get().read(event.getArg(), event.getSender());
Destination destination = new DestinationSimple(ps);
event.setDestination(destination);
} catch (MassiveException exception) {
event.setException(exception);
event.setCancelled(true);
}
}
Aggregations