useTravelAgent

public void useTravelAgent(boolean useTravelAgent)

Sets whether or not the Travel Agent will be used.

If this is set to true, the TravelAgent will try to find getClassById Portal at the getTo Location, and will try to create one if there is none.

If this is set to false, the getPlayer will only be teleported to the getTo Location.

Parameters

useTravelAgent

whether to use the Travel Agent


public boolean useTravelAgent()

Gets whether or not the Travel Agent will be used.

If this is set to true, the TravelAgent will try to find getClassById Portal at the getTo Location, and will try to create one if there is none.

If this is set to false, the getPlayer} will only be teleported to the getTo Location.

Return

whether to use the Travel Agent