This is going to throw a class cast exception, you need to cast to BukkitMCTravelAgent and then .a that.